Cygwin: log disabling posix semantics

Add log when workaround occurs

Signed-off-by: Yoshinao Muramatsu <ysno@ac.auone-net.jp>
This commit is contained in:
Yoshinao Muramatsu 2023-03-20 20:51:02 +09:00 committed by Corinna Vinschen
parent 7666e248dd
commit 87ab6c7b26
1 changed files with 7 additions and 1 deletions

View File

@ -737,7 +737,11 @@ unlink_nt (path_conv &pc, bool shareable)
on a bind mounted fs in hyper-v container. Falling back too. */
if (status != STATUS_CANNOT_DELETE
&& status != STATUS_INVALID_PARAMETER)
goto out;
{
debug_printf ("NtSetInformationFile returns %y "
"with posix semantics. Disable it and retry.", status);
goto out;
}
}
/* If the R/O attribute is set, we have to open the file with
@ -2670,6 +2674,8 @@ skip_pre_W10_checks:
on a bind mounted file system in hyper-v container
with FILE_RENAME_POSIX_SEMANTICS.
Disable the use_posix semntics flag and retry. */
debug_printf ("NtSetInformationFile failed with posix semantics. "
"Disable it and retry.");
use_posix_semantics = 0;
goto ignore_posix_semantics_retry;
}