* 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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user