Enable text-based NFS mounts
Subsystems (2)
cover Enable text-based NFS mounts
Hi Neil-
Enough people have been pushing me to publish this that I finally stopped procrastinating and hacked something together.
Here are a couple of clean-ups, and two patches that provide a command line option on mount.nfs to force it to pass string mount options instead of binary mount options to the kernel.
I'd like to get these integrated into nfs-utils now in order to make it easy for people to start testing the kernel logic; and because Trond wants to freeze the mount ABI, so the only way to add new options is with a new string- based option.
The stropt.[ch] files are rather unfinished, but are in good enough shape that they can be used now and improved by everyone as we go along. The command line option makes it so that normally mount.nfs will use the legacy binary options, and not accidentally pass text-based options; thus it is safe to install as a system's default /sbin/mount.nfs.
As the second patch says, when we are all happy with the user space and kernel parts of this, it will be easy enough to replace the command line option with a switch based on the kernel version.
Signature · 10 lines
corporate: <chuck dot lever at oracle dot com> ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ NFS maillist - [email protected] https://lists.sourceforge.net/lists/listinfo/nfs
Quoted 8 lines · On Thursday August 9, [email protected] wrote:
Hi Neil-
Enough people have been pushing me to publish this that I finally stopped procrastinating and hacked something together.
Here are a couple of clean-ups, and two patches that provide a command line option on mount.nfs to force it to pass string mount options instead of binary mount options to the kernel.
I've taken patches 2 and 3...
Quoted 11 lines
I'd like to get these integrated into nfs-utils now in order to make it easy for people to start testing the kernel logic; and because Trond wants to freeze the mount ABI, so the only way to add new options is with a new string- based option.
The stropt.[ch] files are rather unfinished, but are in good enough shape that they can be used now and improved by everyone as we go along. The command line option makes it so that normally mount.nfs will use the legacy binary options, and not accidentally pass text-based options; thus it is safe to install as a system's default
/sbin/mount.nfs.
Unfortunately a little too unfinished. Once you've fixed the strtok usage I'll take them.
Quoted 4 lines
As the second patch says, when we are all happy with the user space and kernel parts of this, it will be easy enough to replace the command line option with a switch based on the kernel version.
Agreed.. though Trond's suggested of disabling -i for early kernel versions is a good one.
NeilBrown
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs