summaryrefslogtreecommitdiffstats
path: root/utils/mount/parse_opt.h
diff options
context:
space:
mode:
authorBenjamin Coddington <bcodding@redhat.com>2014-12-08 15:32:29 -0500
committerSteve Dickson <steved@redhat.com>2015-01-23 14:08:18 -0500
commit0ffc25463b3e6c5a87c14f782a7c1d19b13d318f (patch)
treedeb2f214a9dc20d1d948be7b6edd8ddd3c9051dc /utils/mount/parse_opt.h
parentbcd629c66ed409d57027e830a1ac287d8af44d3c (diff)
downloadnfs-utils-0ffc25463b3e6c5a87c14f782a7c1d19b13d318f.tar.gz
nfs-utils-0ffc25463b3e6c5a87c14f782a7c1d19b13d318f.tar.xz
nfs-utils-0ffc25463b3e6c5a87c14f782a7c1d19b13d318f.zip
mount.nfs: parse options - add helper po_contains_prefix
The version options (v3,v4,v4.2) may increase in the future, but they have a predictable prefix. Add a parse option helper to locate and return these options by prefix so that a future increment of version does not require the addition of strings to a search table. Signed-off-by: Benjamin Coddington <bcodding@redhat.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils/mount/parse_opt.h')
-rw-r--r--utils/mount/parse_opt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/mount/parse_opt.h b/utils/mount/parse_opt.h
index 5037207..0745e0f 100644
--- a/utils/mount/parse_opt.h
+++ b/utils/mount/parse_opt.h
@@ -45,6 +45,8 @@ po_return_t po_join(struct mount_options *, char **);
po_return_t po_append(struct mount_options *, char *);
po_found_t po_contains(struct mount_options *, char *);
+po_found_t po_contains_prefix(struct mount_options *options,
+ const char *prefix, char **keyword);
char * po_get(struct mount_options *, char *);
po_found_t po_get_numeric(struct mount_options *,
char *, long *);