summaryrefslogtreecommitdiffstats
path: root/utils/mount/stropts.h
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2007-08-10 18:19:55 -0400
committerNeil Brown <neilb@suse.de>2007-08-11 09:47:35 +1000
commit4b87dabfab2197323bf39865ec9ad8fc1788230e (patch)
tree8d5e1b74dae40c2f5e6d99a949ea0de7f743f202 /utils/mount/stropts.h
parent3a1a8015fbc5e64d590bd447a8e1a3c16b26b82f (diff)
downloadnfs-utils-4b87dabfab2197323bf39865ec9ad8fc1788230e.tar.gz
nfs-utils-4b87dabfab2197323bf39865ec9ad8fc1788230e.tar.xz
nfs-utils-4b87dabfab2197323bf39865ec9ad8fc1788230e.zip
mount.nfs: Add new files for supporting string-ified mount options
Introduce support files which contain code that builds string mount options and passes them to the kernel. This is a pre-requisite for actually enabling /sbin/mount.nfs to do text-based mounts. This is only partially complete at the moment, but is presented so that folks can start banging on the kernel mount option string parsing code. There are clearly still parts that are not implemented quite yet, such as bg and retry support, but it should be enough to get going. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'utils/mount/stropts.h')
-rw-r--r--utils/mount/stropts.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/utils/mount/stropts.h b/utils/mount/stropts.h
new file mode 100644
index 0000000..a2a0604
--- /dev/null
+++ b/utils/mount/stropts.h
@@ -0,0 +1,25 @@
+/*
+ * stropts.h -- Provide common network functions for NFS mount/umount
+ *
+ * Copyright (C) 2007 Oracle. All rights reserved.
+ * Copyright (C) 2007 Chuck Lever <chuck.lever@oracle.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 021110-1307, USA.
+ *
+ */
+
+int nfsmount_s(const char *, const char *, int , char **, int, int);
+int nfs4mount_s(const char *, const char *, int, char **, int, int);