Commit 2430c4daf9e6cc6b144906a41f7f28c3f6ae5a2c

Authored by Coly Li
Committed by Linus Torvalds
1 parent 604d295c26

fs/isofs: return f_fsid for statfs(2)

Make isofs return f_fsid info for statfs(2).

Signed-off-by: Coly Li <coly.li@suse.de>
Cc: Jan Kara <jack@ucw.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff

... ... @@ -923,6 +923,7 @@
923 923 static int isofs_statfs (struct dentry *dentry, struct kstatfs *buf)
924 924 {
925 925 struct super_block *sb = dentry->d_sb;
  926 + u64 id = huge_encode_dev(sb->s_bdev->bd_dev);
926 927  
927 928 buf->f_type = ISOFS_SUPER_MAGIC;
928 929 buf->f_bsize = sb->s_blocksize;
... ... @@ -932,6 +933,8 @@
932 933 buf->f_bavail = 0;
933 934 buf->f_files = ISOFS_SB(sb)->s_ninodes;
934 935 buf->f_ffree = 0;
  936 + buf->f_fsid.val[0] = (u32)id;
  937 + buf->f_fsid.val[1] = (u32)(id >> 32);
935 938 buf->f_namelen = NAME_MAX;
936 939 return 0;
937 940 }