Re: [PATCH] UBIFS: fill f_fsid

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andreas Dilger
Date: Tuesday, September 2, 2008 - 10:09 am

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.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: UBIFS updates for 2.6.27, Artem Bityutskiy, (Sun Aug 31, 7:32 am)
UBIFS updates for 2.6.27, Artem Bityutskiy, (Sun Aug 31, 7:52 am)
[PATCH] UBIFS: fix zero-length truncations, Artem Bityutskiy, (Sun Aug 31, 7:52 am)
[PATCH] UBIFS: always read hashed-key nodes under TNC mutex, Artem Bityutskiy, (Sun Aug 31, 7:52 am)
[PATCH] UBIFS: allow for racing between GC and TNC, Artem Bityutskiy, (Sun Aug 31, 7:52 am)
[PATCH] UBIFS: do not update min_idx_lebs in stafs, Artem Bityutskiy, (Sun Aug 31, 7:52 am)
[PATCH] UBIFS: push empty flash hack down, Artem Bityutskiy, (Sun Aug 31, 7:52 am)
[PATCH] UBIFS: remove incorrect index space check, Artem Bityutskiy, (Sun Aug 31, 7:52 am)
[PATCH] UBIFS: improve statfs reporting, Artem Bityutskiy, (Sun Aug 31, 7:52 am)
[PATCH] UBIFS: fix assertion, Artem Bityutskiy, (Sun Aug 31, 7:52 am)
[PATCH] UBIFS: add forgotten gc_idx_lebs component, Artem Bityutskiy, (Sun Aug 31, 7:52 am)
[PATCH] UBIFS: introduce LEB overhead, Artem Bityutskiy, (Sun Aug 31, 7:52 am)
[PATCH] UBIFS: improve statfs reporting even more, Artem Bityutskiy, (Sun Aug 31, 7:52 am)
[PATCH] UBIFS: fill f_fsid, Artem Bityutskiy, (Sun Aug 31, 7:52 am)
Re: [PATCH] UBIFS: fill f_fsid, David Woodhouse, (Mon Sep 1, 2:43 am)
Re: [PATCH] UBIFS: fill f_fsid, Artem Bityutskiy, (Mon Sep 1, 4:16 am)
Re: [PATCH] UBIFS: fill f_fsid, David Woodhouse, (Mon Sep 1, 4:28 am)
Re: [PATCH] UBIFS: fill f_fsid, Artem Bityutskiy, (Mon Sep 1, 4:43 am)
Re: [PATCH] UBIFS: fill f_fsid, David Woodhouse, (Mon Sep 1, 4:50 am)
Re: [PATCH] UBIFS: fill f_fsid, Artem Bityutskiy, (Mon Sep 1, 4:56 am)
Re: [PATCH] UBIFS: fill f_fsid, Christoph Hellwig, (Mon Sep 1, 8:01 am)
Re: [PATCH] UBIFS: fill f_fsid, Artem Bityutskiy, (Tue Sep 2, 12:03 am)
Re: [PATCH] UBIFS: fill f_fsid, Andreas Dilger, (Tue Sep 2, 10:09 am)
Re: [PATCH] UBIFS: fill f_fsid, David Woodhouse, (Tue Sep 2, 10:29 am)
Re: [PATCH] UBIFS: fill f_fsid, Andreas Dilger, (Tue Sep 2, 12:13 pm)
Re: [PATCH] UBIFS: fill f_fsid, David Woodhouse, (Tue Sep 2, 12:32 pm)
Re: [PATCH] UBIFS: fill f_fsid, Christoph Hellwig, (Tue Sep 2, 2:02 pm)
Re: [PATCH] UBIFS: fill f_fsid, David Woodhouse, (Tue Sep 2, 2:26 pm)
Re: [PATCH] UBIFS: fill f_fsid, Christoph Hellwig, (Tue Sep 2, 2:48 pm)
Re: [PATCH] UBIFS: fill f_fsid, David Woodhouse, (Tue Sep 2, 3:12 pm)
Re: [PATCH] UBIFS: fill f_fsid, David Woodhouse, (Tue Sep 2, 3:32 pm)
Re: [PATCH] UBIFS: fill f_fsid, Artem Bityutskiy, (Tue Sep 2, 11:20 pm)
Re: [PATCH] UBIFS: fill f_fsid, Artem Bityutskiy, (Wed Sep 3, 2:44 am)
Re: [PATCH] UBIFS: fill f_fsid, David Woodhouse, (Wed Sep 3, 3:14 am)