From: Coly Li Date: Thu, 2 Apr 2009 23:59:27 +0000 (-0700) Subject: fs/adfs: return f_fsid for statfs(2) X-Git-Tag: v2.6.30-rc1~267 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=accb40122040374e97fdf4bb81bdc9316b52c756;p=pandora-kernel.git fs/adfs: return f_fsid for statfs(2) Currently many file systems in Linux kernel do not return f_fsid in statfs info, the value is set as 0 in vfs layer. Anyway, in some conditions, f_fsid from statfs(2) is useful, especially being used as (f_fsid, ino) pair to uniquely identify a file. Basic idea of the patches is generating a unique fs ID by huge_encode_dev(sb->s_bdev->bd_dev) during file system mounting life time (no endian consistent issue). sb is a point of struct super_block of current mounted file system being accessed by statfs(2). This patch: Make adfs return f_fsid info for statfs(2), and do a little variable renaming in adfs_statfs(). Signed-off-by: Coly Li Cc: Roman Zippel Cc: "Sergey S. Kostyliov" Cc: OGAWA Hirofumi Cc: Mikulas Patocka Cc: Dave Kleikamp Cc: Bob Copeland Cc: Anders Larsen Cc: Phillip Lougher Cc: Christoph Hellwig Cc: Evgeniy Dushistov Cc: Jan Kara Cc: Andreas Dilger Cc: Jamie Lokier Cc: Theodore Ts'o Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed