diff options
author | Coly Li <coly.li@suse.de> | 2009-04-02 19:59:38 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-02 22:05:09 -0400 |
commit | 2430c4daf9e6cc6b144906a41f7f28c3f6ae5a2c (patch) | |
tree | 77205aaed6beda98cb414ebcbb2a6e57c5c85a50 /fs/isofs | |
parent | 604d295c26f2229636c7fa4eba33af017c3b70e3 (diff) |
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>
Diffstat (limited to 'fs/isofs')
-rw-r--r-- | fs/isofs/inode.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/isofs/inode.c b/fs/isofs/inode.c index 13d2eddd0692..b4cbe9603c7d 100644 --- a/fs/isofs/inode.c +++ b/fs/isofs/inode.c | |||
@@ -923,6 +923,7 @@ out_freesbi: | |||
923 | static int isofs_statfs (struct dentry *dentry, struct kstatfs *buf) | 923 | static int isofs_statfs (struct dentry *dentry, struct kstatfs *buf) |
924 | { | 924 | { |
925 | struct super_block *sb = dentry->d_sb; | 925 | struct super_block *sb = dentry->d_sb; |
926 | u64 id = huge_encode_dev(sb->s_bdev->bd_dev); | ||
926 | 927 | ||
927 | buf->f_type = ISOFS_SUPER_MAGIC; | 928 | buf->f_type = ISOFS_SUPER_MAGIC; |
928 | buf->f_bsize = sb->s_blocksize; | 929 | buf->f_bsize = sb->s_blocksize; |
@@ -932,6 +933,8 @@ static int isofs_statfs (struct dentry *dentry, struct kstatfs *buf) | |||
932 | buf->f_bavail = 0; | 933 | buf->f_bavail = 0; |
933 | buf->f_files = ISOFS_SB(sb)->s_ninodes; | 934 | buf->f_files = ISOFS_SB(sb)->s_ninodes; |
934 | buf->f_ffree = 0; | 935 | buf->f_ffree = 0; |
936 | buf->f_fsid.val[0] = (u32)id; | ||
937 | buf->f_fsid.val[1] = (u32)(id >> 32); | ||
935 | buf->f_namelen = NAME_MAX; | 938 | buf->f_namelen = NAME_MAX; |
936 | return 0; | 939 | return 0; |
937 | } | 940 | } |