Skip to content

Commit 8587246

Browse files
Coly Litorvalds
authored andcommitted
fs/befs: return f_fsid for statfs(2)
Make befs return f_fsid info for statfs(2). Signed-off-by: Coly Li <coly.li@suse.de> Cc: Sergey S. Kostyliov <rathamahata@php4.ru> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent a6a2a73 commit 8587246

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎fs/befs/linuxvfs.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -900,6 +900,7 @@ static int
900900
befs_statfs(struct dentry *dentry, struct kstatfs *buf)
901901
{
902902
struct super_block *sb = dentry->d_sb;
903+
u64 id = huge_encode_dev(sb->s_bdev->bd_dev);
903904

904905
befs_debug(sb, "---> befs_statfs()");
905906

@@ -910,6 +911,8 @@ befs_statfs(struct dentry *dentry, struct kstatfs *buf)
910911
buf->f_bavail = buf->f_bfree;
911912
buf->f_files = 0; /* UNKNOWN */
912913
buf->f_ffree = 0; /* UNKNOWN */
914+
buf->f_fsid.val[0] = (u32)id;
915+
buf->f_fsid.val[1] = (u32)(id >> 32);
913916
buf->f_namelen = BEFS_NAME_LEN;
914917

915918
befs_debug(sb, "<--- befs_statfs()");

0 commit comments

Comments
 (0)