summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/include/sys/mount.h
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2010-04-29 10:38:05 +0000
committerCorinna Vinschen <corinna@vinschen.de>2010-04-29 10:38:05 +0000
commit5b4c992bf6d29dcdde87288c340051e9bc524f27 (patch)
tree69d6720f13d0dc6c5520f2511b70abfa4bc61ccd /winsup/cygwin/include/sys/mount.h
parenta82a8dcb4edae5a2b135c8f3d9da6eb58d6f444c (diff)
downloadcygnal-5b4c992bf6d29dcdde87288c340051e9bc524f27.tar.gz
cygnal-5b4c992bf6d29dcdde87288c340051e9bc524f27.tar.bz2
cygnal-5b4c992bf6d29dcdde87288c340051e9bc524f27.zip
* mount.cc (struct opt): Add "dos" and "ihash" options.
(fillout_mntent): Ditto. * path.cc (path_conv::get_nt_native_path): Use path_conv's has_dos_filenames_only method. (path_conv::check): Add PATH_IHASH flag if FS has unreliable inode numbers. (symlink_info::check_shortcut): Or symlink flags to pflags. (symlink_info::check_sysfile): Ditto. Change test accordingly. (symlink_info::check_reparse_point): Ditto. (symlink_info::check_nfs_symlink): Ditto. (symlink_info::check): Check PATH_DOS flag in call to get_nt_native_path to utilize mount flag. Ditto in test for potential restarting. Set PATH_DOS if FS only allows DOS filename rules. * path.h (enum path_types): Add PATH_DOS and PATH_IHASH. (path_conv::hasgood_inode): Check PATH_IHASH instead of fs.hasgood_inode. (path_conv::has_dos_filenames_only): New method. * include/sys/mount.h (MOUNT_DOS): New mount flag. (MOUNT_IHASH): Ditto.
Diffstat (limited to 'winsup/cygwin/include/sys/mount.h')
-rw-r--r--winsup/cygwin/include/sys/mount.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/winsup/cygwin/include/sys/mount.h b/winsup/cygwin/include/sys/mount.h
index f6e6ac64d..0fe5e3c74 100644
--- a/winsup/cygwin/include/sys/mount.h
+++ b/winsup/cygwin/include/sys/mount.h
@@ -36,7 +36,10 @@ enum
MOUNT_NOPOSIX = 0x04000, /* Case insensitve path handling */
MOUNT_OVERRIDE = 0x08000, /* Allow overriding of root */
MOUNT_IMMUTABLE = 0x10000, /* Mount point can't be changed */
- MOUNT_AUTOMATIC = 0x20000 /* Mount point was added automatically */
+ 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 */
};
int mount (const char *, const char *, unsigned __flags);