On 08/28/2009 12:12 PM, Christoph Hellwig wrote: > On Thu, Aug 27, 2009 at 01:32:09PM -0400, Chuck Lever wrote: >>>>> about making that more feasible. >>>> >>>> Just look at what we're already doing for NFSv4. Inside nfs4_get_sb, >>>> we >>>> basically do a kernel mount in order to get the real super block. We >>>> then simply have to attach it to the vfsmount that the sys_mount() >>>> call >>>> passed down to us. >>> Well its not nfs4_get_sb() that would have to change its nfs_get_sb() >>> that would have to do an nfs4 mount after it discovered the -o vers=4. >>> It would get very messy very quickly for absolutely no reason since >>> the propose mount patch is straightforward, it works and better yet >>> its done! ;-) >> >> Right now we are only speculating that doing this in the kernel will not >> be straightforward. You say it will be unbearably ugly, and Trond says >> it should be simple. He said - he said. Why not try it and find out? > > It's actually trivial. The file_system_type does not have much meaning > at all, it contains very little information: Question... How are will it be to back out of this? Meaning the kernel tries a v4 mount only to see the server does not support v4 or for some other recoverable error and then has to restart back down the mount NFS again... This is very fairly trivial in user space... steved. -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html