Skip to content

Commit 749d3a2

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

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

winsup/cygwin/syscalls.cc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,9 @@ _unlink_nt (path_conv &pc, bool shareable)
736736
if (status != STATUS_CANNOT_DELETE
737737
&& status != STATUS_INVALID_PARAMETER)
738738
goto out;
739+
debug_printf ("NtSetInformationFile (%S, FileDispositionInformationEx)"
740+
" returns %y with posix semantics. Disable it and retry.",
741+
pc.get_nt_native_path (), status);
739742
}
740743

741744
/* If the R/O attribute is set, we have to open the file with
@@ -2689,6 +2692,11 @@ rename2 (const char *oldpath, const char *newpath, unsigned int at2flags)
26892692
on a bind mounted file system in hyper-v container
26902693
with FILE_RENAME_POSIX_SEMANTICS.
26912694
Disable the use_posix semntics flag and retry. */
2695+
debug_printf ("NtSetInformationFile "
2696+
"(%S, %S, FileRenameInformationEx) failed "
2697+
"with posix semantics. Disable it and retry.",
2698+
oldpc.get_nt_native_path (),
2699+
newpc.get_nt_native_path ());
26922700
use_posix_semantics = 0;
26932701
goto ignore_posix_semantics_retry;
26942702
}

0 commit comments

Comments
 (0)