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

fs/affs: return f_fsid for statfs(2)

Make affs return f_fsid info for statfs(2).

Signed-off-by: Coly Li <coly.li@suse.de>
Cc: Roman Zippel <zippel@linux-m68k.org>
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
a6a2a73c accb4012

+4
+4
fs/affs/super.c
··· 533 533 { 534 534 struct super_block *sb = dentry->d_sb; 535 535 int free; 536 + u64 id = huge_encode_dev(sb->s_bdev->bd_dev); 536 537 537 538 pr_debug("AFFS: statfs() partsize=%d, reserved=%d\n",AFFS_SB(sb)->s_partition_size, 538 539 AFFS_SB(sb)->s_reserved); ··· 544 543 buf->f_blocks = AFFS_SB(sb)->s_partition_size - AFFS_SB(sb)->s_reserved; 545 544 buf->f_bfree = free; 546 545 buf->f_bavail = free; 546 + buf->f_fsid.val[0] = (u32)id; 547 + buf->f_fsid.val[1] = (u32)(id >> 32); 548 + buf->f_namelen = 30; 547 549 return 0; 548 550 } 549 551