From be2749cd4eb6e7ea1b70eaf7cd78f683db21c8ec Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 3 Apr 2023 22:41:07 +0200 Subject: Cygwin: chattr: fix description of requirements for casesensitive directories Preconditions of WSL or empty directories dependent on Windows versions was totally screwed up. Drop the description from --help, describe the preconditions for case-sensitive dirs in the man page instead. Fixes: fc6e89c937c1 ("Cygwin: chattr: clarify requirements for casesensitive directories") Signed-off-by: Corinna Vinschen --- winsup/doc/utils.xml | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'winsup/doc') diff --git a/winsup/doc/utils.xml b/winsup/doc/utils.xml index a90db5e66..0390db20f 100644 --- a/winsup/doc/utils.xml +++ b/winsup/doc/utils.xml @@ -89,11 +89,27 @@ content indexing service 'e', 'Encrypted': file is encrypted 'C', 'Casesensitive': directory is handled case sensitive - - local NTFS only - - Windows 10 1803 or later: requires installed WSL - - Windows 11: enabling requires empty dir + + + Case-sensitive directories + Case-sensitive directories are supported starting with + Windows 10 1803. They are only supported on local NTFS filesystems. + + The system-wide availability of case-sensitive directories + depends on the setting of the registry value of type DWORD called + HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem\NtfsEnableDirCaseSensitivity. The value 0 disables case-sensitive directories. + The value 1 enables case-sensitive directories. The value 3 + enables case-sensitive directories, too, with the additional + requirement that a directory can only be set to case-sensitive + if it's empty. No other value is supported. + Removing case-sensitivity on a directory requires that the + directory does not contain files only differing by case. + Trying to access a case-sensitive directory on a remote NTFS leads + to all kinds of weird errors and is therefore + not recommended. + -- cgit v1.2.3