Skip to content

Commit a796047

Browse files
committed
log disabling posix semantics
1 parent 502dc8e commit a796047

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

winsup/cygwin/syscalls.cc

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,13 @@ _unlink_nt (path_conv &pc, bool shareable)
735735
on a bind mounted fs in hyper-v container. Falling back too. */
736736
if (status != STATUS_CANNOT_DELETE
737737
&& status != STATUS_INVALID_PARAMETER)
738-
goto out;
738+
{
739+
debug_printf ("NtSetInformationFile "
740+
"(%S, FileDispositionInformationEx) returns %y "
741+
"with posix semantics. Disable it and retry.",
742+
pc.get_nt_native_path (), status);
743+
goto out;
744+
}
739745
}
740746

741747
/* If the R/O attribute is set, we have to open the file with
@@ -2689,6 +2695,11 @@ rename2 (const char *oldpath, const char *newpath, unsigned int at2flags)
26892695
on a bind mounted file system in hyper-v container
26902696
with FILE_RENAME_POSIX_SEMANTICS.
26912697
Disable the use_posix semntics flag and retry. */
2698+
debug_printf ("NtSetInformationFile "
2699+
"(%S, %S, FileRenameInformationEx) failed "
2700+
"with posix semantics. Disable it and retry.",
2701+
oldpc.get_nt_native_path (),
2702+
newpc.get_nt_native_path ());
26922703
use_posix_semantics = 0;
26932704
goto ignore_posix_semantics_retry;
26942705
}

0 commit comments

Comments
 (0)