Skip to content

Commit

Permalink
log disabling posix semantics
Browse files Browse the repository at this point in the history
  • Loading branch information
YO4 committed Mar 17, 2023
1 parent 502dc8e commit 749d3a2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions winsup/cygwin/syscalls.cc
Original file line number Diff line number Diff line change
Expand Up @@ -736,6 +736,9 @@ _unlink_nt (path_conv &pc, bool shareable)
if (status != STATUS_CANNOT_DELETE
&& status != STATUS_INVALID_PARAMETER)
goto out;
debug_printf ("NtSetInformationFile (%S, FileDispositionInformationEx)"
" returns %y with posix semantics. Disable it and retry.",
pc.get_nt_native_path (), status);
}

/* If the R/O attribute is set, we have to open the file with
Expand Down Expand Up @@ -2689,6 +2692,11 @@ rename2 (const char *oldpath, const char *newpath, unsigned int at2flags)
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 "
"(%S, %S, FileRenameInformationEx) failed "
"with posix semantics. Disable it and retry.",
oldpc.get_nt_native_path (),
newpc.get_nt_native_path ());
use_posix_semantics = 0;
goto ignore_posix_semantics_retry;
}
Expand Down

0 comments on commit 749d3a2

Please sign in to comment.