summaryrefslogtreecommitdiffstats
path: root/utils/mount/parse_opt.h
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2008-12-17 14:21:10 -0500
committerSteve Dickson <steved@redhat.com>2008-12-17 14:21:10 -0500
commitb5009d23525181846777349f2fc0e4a72b89d24d (patch)
tree62eb84001cfcd439ee4170e9fffa5597710750f8 /utils/mount/parse_opt.h
parenteb3a145789b9eedd39b56e1d76f412435abaa747 (diff)
downloadnfs-utils-b5009d23525181846777349f2fc0e4a72b89d24d.tar.gz
nfs-utils-b5009d23525181846777349f2fc0e4a72b89d24d.tar.xz
nfs-utils-b5009d23525181846777349f2fc0e4a72b89d24d.zip
text-based mount command: add function to parse numeric mount options
Introduce a function that is especially for parsing keyword mount options that take a numeric value. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils/mount/parse_opt.h')
-rw-r--r--utils/mount/parse_opt.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/mount/parse_opt.h b/utils/mount/parse_opt.h
index fb003c3..199630f 100644
--- a/utils/mount/parse_opt.h
+++ b/utils/mount/parse_opt.h
@@ -32,6 +32,7 @@ typedef enum {
typedef enum {
PO_NOT_FOUND = 0,
PO_FOUND = 1,
+ PO_BAD_VALUE = 2,
} po_found_t;
typedef enum {
@@ -50,6 +51,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 *);
char * po_get(struct mount_options *, char *);
+po_found_t po_get_numeric(struct mount_options *,
+ char *, long *);
po_rightmost_t po_rightmost(struct mount_options *, char *, char *);
po_found_t po_remove_all(struct mount_options *, char *);
void po_destroy(struct mount_options *);