On Sep 02, 2008 10:03 +0300, Artem Bityutskiy wrote:
The fsid is supposed to be a persistent, unique identifier for the
filesystem, used by NFS in file handles. Using st_dev is unsafe,
because that may change from one server boot to the next, because
of device probing order, driver changes, etc. Also, not all filesystems
HAVE a valid st_dev in the first place, which is the whole reason
for this thread.
I think a ->get_fsid() export method would be preferable.
Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.
--