]> git.decadent.org.uk Git - nfs-utils.git/commit
Currently the "-s" option is ignored by the text-based mount interface. To
authorChuck Lever <chuck.lever@oracle.com>
Tue, 15 Jul 2008 16:17:19 +0000 (12:17 -0400)
committerSteve Dickson <steved@redhat.com>
Tue, 15 Jul 2008 16:17:19 +0000 (12:17 -0400)
commit8bca04ebcc345784bf2ef29f0781e66157d76558
tree181eda881ce991e3458ab977ae752204f252888b
parent46c6575fe23a7468c17ec3329d956e9d3afe60e8
Currently the "-s" option is ignored by the text-based mount interface.  To
notify the kernel that sloppy mount option parsing is needed, add "sloppy"
to the string of mount options passed to the kernel.

The 2.6.23 - 2.6.26 kernels will fail the mount if "sloppy" is present, as
they won't recognize it.  To prevent them from ever seeing this option,
have the mount command check the kernel version before appending the option.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/mount/stropts.c