public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/20] return f_fsid for statfs(2)
@ 2009-01-19 17:30 Coly Li
  2009-01-19 19:28 ` Dave Kleikamp
  0 siblings, 1 reply; 10+ messages in thread
From: Coly Li @ 2009-01-19 17:30 UTC (permalink / raw)
  To: linux-kernel
  Cc: Andrew Morton, Roman Zippel, Sergey S. Kostyliov, OGAWA Hirofumi,
	Mikulas Patocka, Dave Kleikamp, Bob Copeland, Anders Larsen,
	reiserfs-devel, Phillip Lougher, Christoph Hellwig,
	Evgeniy Dushistov, Jan Kara

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).

The patches are quite simple, any feedback or patch review is welcome.

Thanks.
-- 
Coly Li
SuSE Labs






^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-01-22 19:31 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-19 17:30 [PATCH 0/20] return f_fsid for statfs(2) Coly Li
2009-01-19 19:28 ` Dave Kleikamp
2009-01-19 23:36   ` Andreas Dilger
2009-01-20  2:39     ` Dave Kleikamp
2009-01-20  4:13       ` Andreas Dilger
2009-01-20  4:30         ` Coly Li
2009-01-20  4:44           ` Andreas Dilger
2009-01-20  7:03             ` Coly Li
2009-01-20 18:48             ` Jamie Lokier
2009-01-22 19:36               ` Coly Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox