[klibc] nfs MNT include cleanup

Chuck Lever chuck.lever at oracle.com
Tue Aug 18 06:19:04 PDT 2009

On Aug 18, 2009, at 8:44 AM, maximilian attems wrote:
> On Tue, Aug 18, 2009 at 08:45:49AM -0400, Chuck Lever wrote:
>> However, the kernel has its own NFS mount client (the piece that
>> handles rpcbind query and obtaining the root file handle), and you  
>> can
>> pass a C string of mount options to the kernel with mount(2).   
>> Perhaps
>> in the long term, you might consider replacing the specialized code  
>> in
>> klibc with simply passing the server, export path, and mount options
>> right to the kernel and let it do the work.  This should work with  
>> any
>> kernel later than 2.6.23.
>> I'm happy to help with any questions.
> sounds good indeed.
> a quick one: can it do nfs v4 mounts?

Yes, in fact.  Set the file system type to "nfs4" instead of "nfs"  
when invoking mount(2).

Chuck Lever

More information about the klibc mailing list