* mount.cc (struct opt): Add "bind" option.

(mount_info::from_fstab_line): Handle "bind" option.
	(fillout_mntent): Add "bind" option to mnt_opts.
	(mount): Handle "bind" option.
	* include/sys/mount.h (MOUNT_BIND): New mount flag.
This commit is contained in:
Corinna Vinschen
2010-08-11 10:58:06 +00:00
parent ac8050277c
commit a5fe426282
3 changed files with 50 additions and 2 deletions

View File

@@ -39,7 +39,8 @@ enum
MOUNT_AUTOMATIC = 0x20000, /* Mount point was added automatically */
MOUNT_DOS = 0x40000, /* convert leading spaces and trailing
dots and spaces to private use area */
MOUNT_IHASH = 0x80000 /* Enforce hash values for inode numbers */
MOUNT_IHASH = 0x80000, /* Enforce hash values for inode numbers */
MOUNT_BIND = 0x100000 /* Allows bind syntax in fstab file. */
};
int mount (const char *, const char *, unsigned __flags);