Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Coly Li and committed by
Linus Torvalds
8587246a a6a2a73c

+3
+3
fs/befs/linuxvfs.c
··· 900 900 befs_statfs(struct dentry *dentry, struct kstatfs *buf) 901 901 { 902 902 struct super_block *sb = dentry->d_sb; 903 + u64 id = huge_encode_dev(sb->s_bdev->bd_dev); 903 904 904 905 befs_debug(sb, "---> befs_statfs()"); 905 906 ··· 911 910 buf->f_bavail = buf->f_bfree; 912 911 buf->f_files = 0; /* UNKNOWN */ 913 912 buf->f_ffree = 0; /* UNKNOWN */ 913 + buf->f_fsid.val[0] = (u32)id; 914 + buf->f_fsid.val[1] = (u32)(id >> 32); 914 915 buf->f_namelen = BEFS_NAME_LEN; 915 916 916 917 befs_debug(sb, "<--- befs_statfs()");