OSDN Git Service

* mount.cc (struct opt): Add "dos" and "ihash" options.
authorcorinna <corinna>
Thu, 29 Apr 2010 10:38:03 +0000 (10:38 +0000)
committercorinna <corinna>
Thu, 29 Apr 2010 10:38:03 +0000 (10:38 +0000)
commita7ae56b1316c585d99d147ce8c18c8064953df62
treed4470c2681d81c930033e4f8a428ce1c1b260212
parentf73f21d600f1cc03ac12db561aa8922256480c27
* 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.
winsup/cygwin/ChangeLog
winsup/cygwin/include/sys/mount.h
winsup/cygwin/mount.cc
winsup/cygwin/path.cc
winsup/cygwin/path.h