]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
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)
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>

No differences found