Re: [PATCH] UBIFS: fill f_fsid

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andreas Dilger <adilger@...>
Cc: Artem Bityutskiy <dedekind@...>, Christoph Hellwig <hch@...>, <linux-fsdevel@...>, <linux-kernel@...>, Adrian Hunter <ext-adrian.hunter@...>
Date: Tuesday, September 2, 2008 - 1:29 pm

On Tue, 2008-09-02 at 11:09 -0600, Andreas Dilger wrote:

Yes, putting st_dev in f_fsid probably isn't a good thing to do.


I implemented that, but it doesn't really work. The fsid->export mapping
happens in userspace, so mountd needs access to the fsid. So the mount
would work fine and return a FH with the appropriate fsid, and then
mountd would have no knowledge of how to handle that FH, and mount(8) on
the client would eventually time out and fail.

It worked if I prepopulated the nfsd.fh cache in expkey_parse() so we
didn't end up asking userspace to resolve that FH for us -- but that was
just a quick hack. It wouldn't have worked after a server reboot, for
example -- we'd have asked userspace again.

We'd need to export that fsid to userspace somehow. I did briefly think
about adding something like ',uuid=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' to
each line in /proc/mounts, as if it was a file system option -- but I
don't like that much.

When looking for other options, I realised that we already have the
f_fsid field in struct statfs, and we might as well just use that. That
does seem to be what it was _designed_ for, after all.

-- 
David Woodhouse                            Open Source Technology Centre
David.Woodhouse@intel.com                              Intel Corporation



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

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