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 --
| Greg Kroah-Hartman | [PATCH 004/196] Chinese: add translation of SubmittingPatches |
| Alan Stern | Re: 2.6.22-rc2-mm1 |
| Satyam Sharma | Re: [PATCH 0/24] make atomic_read() behave consistently across all architectures |
| William Lee Irwin III | Re: [Announce] [patch] Modular Scheduler Core and Completely Fair Scheduler [CFS] |
git: | |
| Dale Farnsworth | Re: [PATCH 03/39] mv643xx_eth: shorten reg names |
| Jarek Poplawski | Re: HTB accuracy for high speed |
| Gerrit Renker | [PATCH 15/37] dccp: Set per-connection CCIDs via socket options |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
