diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2007-07-28 17:51:00 -0400 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2007-07-30 16:19:34 +1000 |
commit | 40b9d523a07cf5d146b3be2724c58e9e872a0836 (patch) | |
tree | 7cf4cad029b3b5e5e07830b0ab69426e2058403c /support/include/fstab.h | |
parent | a786c016f0af6fa116ae2483d6261dbed009d87e (diff) | |
download | nfs-utils-40b9d523a07cf5d146b3be2724c58e9e872a0836.tar.gz nfs-utils-40b9d523a07cf5d146b3be2724c58e9e872a0836.tar.xz nfs-utils-40b9d523a07cf5d146b3be2724c58e9e872a0836.zip |
libnfs.a: eliminate another dependency on a global variable
The file support/nfs/fstab.c, which is linked into libnfs.a, depends on the
global variable "verbose." This variable is defined and used only in the
mount command, and the functions in fstab.c are used only by the mount
command.
Move fstab.c and support/include/fstab.h to utils/mount. This file
placement is also consistent with at least one other mount helper,
mount.ocfs2.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'support/include/fstab.h')
-rw-r--r-- | support/include/fstab.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/support/include/fstab.h b/support/include/fstab.h deleted file mode 100644 index 64c8355..0000000 --- a/support/include/fstab.h +++ /dev/null @@ -1,30 +0,0 @@ -#ifndef _NFS_FSTAB_H -#define _NFS_FSTAB_H - -#include "nfs_mntent.h" - -#ifndef _PATH_FSTAB -#define _PATH_FSTAB "/etc/fstab" -#endif - -int mtab_is_writable(void); -int mtab_does_not_exist(void); - -struct mntentchn { - struct mntentchn *nxt, *prev; - struct mntent m; -}; - -struct mntentchn *getmntoptfile (const char *file); -struct mntentchn *getmntdirbackward (const char *dir, struct mntentchn *mc); -struct mntentchn *getmntdevbackward (const char *dev, struct mntentchn *mc); - -struct mntentchn *getfsfile (const char *file); -struct mntentchn *getfsspec (const char *spec); - -void lock_mtab (void); -void unlock_mtab (void); -void update_mtab (const char *special, struct mntent *with); - -#endif /* _NFS_FSTAB_H */ - |