Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fuse: Ensure lookup sets st_ino of attributes #126

Merged
merged 1 commit into from
May 4, 2023

Conversation

Champ-Goblem
Copy link
Contributor

The filesystem test utility xfs-tests[1] failed on test generic/007 with the error nametest.16 (8370) lookup, should be inumber 72057594037927972. It can be observed in the kernel that the inode number for the file often switches between the hosts inode number and the fuse assigned one.

In the vfs lookup function the out entry inode is set on the top level but does not update attr.st_ino field. Adjust this so that the inode number is correctly set on the attributes.

After this change the test generic/007 passes.

[1] https://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git/tree/

The filesystem test utility xfs-tests[1] failed on test generic/007 with
the error nametest.16 (8370) lookup, should be inumber 72057594037927972.
It can be observed in the kernel that the inode number for the file
often switches between the hosts inode number and the fuse assigned one.

In the vfs lookup function the out entry inode is set on the top level
but does not update attr.st_ino field. Adjust this so that the inode
number is correctly set on the attributes.

After this change the test generic/007 passes.

[1] https://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git/tree/

Signed-off-by: Champ-Goblem <[email protected]>
Copy link
Contributor

@bergwolf bergwolf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch! Thanks!

@bergwolf bergwolf merged commit 05f5937 into cloud-hypervisor:master May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants