]> git.decadent.org.uk Git - nfs-utils.git/commit
text-based mount command: make po_rightmost() work for N options
authorChuck Lever <chuck.lever@oracle.com>
Tue, 27 Jan 2009 22:41:02 +0000 (17:41 -0500)
committerSteve Dickson <steved@redhat.com>
Tue, 27 Jan 2009 22:41:02 +0000 (17:41 -0500)
commit0dcb83a870926de215307472676096056dabc9b0
tree4db3b268848ec4bf0e334d4777de2c5bc259bc80
parent29ac873f9024c8fcbca38ab09ba54cda3765b746
text-based mount command: make po_rightmost() work for N options

Sometimes we need to choose the rightmost option among multiple
different mount options.  For example, we want to find the rightmost
of "proto," "tcp," and "udp".  Or, the rightmost of "vers," "nfsvers,"
"v2," and "v3".

Update po_rightmost() to choose among N options instead of just two.

Signed-off-by: Steve Dickson <steved@redhat.com>
utils/mount/parse_opt.c
utils/mount/parse_opt.h
utils/mount/stropts.c