From 4b87dabfab2197323bf39865ec9ad8fc1788230e Mon Sep 17 00:00:00 2001 From: Chuck Lever Date: Fri, 10 Aug 2007 18:19:55 -0400 Subject: 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 Signed-off-by: Neil Brown --- utils/mount/stropts.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 utils/mount/stropts.h (limited to 'utils/mount/stropts.h') 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 + * + * 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); -- cgit