[klibc] nfs MNT include cleanup
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
>> pass a C string of mount options to the kernel with mount(2).
>> in the long term, you might consider replacing the specialized code
>> 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
>> 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).
More information about the klibc