ocfs2: return f_fsid info in ocfs2_statfs()
authorColy Li <coly.li@suse.de>
Fri, 16 Jan 2009 08:33:05 +0000 (16:33 +0800)
committerJoel Becker <joel.becker@oracle.com>
Thu, 29 Oct 2009 22:02:20 +0000 (15:02 -0700)
commit837711f862bb71ac263837a0f0714dd8cc4ef7ea
tree888b92d23a7563ef1d5a866ac46f2d48a8564101
parent2f48d593b6ceb7bb63d34124ceba77d33be298cf
ocfs2: return f_fsid info in ocfs2_statfs()

Currently the f_fsid of struct kstatfs returned from ocfs2_statfs() is
undefined (vfs layer fills in 0 as default). Since in some conditions,
f_fsid value might be used in a (f_fsid, ino) pair to uniquely identify
a file, ocfs2 should return a unique defined f_fsid value from
ocfs2_statfs().

Because uuid_str is the same on big or litlle endian machine, it's
endian consistent to use osb->uuid_str to generate f_fsid value.

Signed-off-by: Coly Li <coly.li@suse.de>
Cc: Sunil Mushran <sunil.mushran@oracle.com>
Cc: Mark Fasheh <mfasheh@suse.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
fs/ocfs2/super.c