[PATCH 3/3] log disabling posix semantics

2023-03-17 Thread YO4
--- winsup/cygwin/syscalls.cc | 8 1 file changed, 8 insertions(+) diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index 69699c8aa..ca40681cd 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -736,6 +736,9 @@ _unlink_nt (path_conv &pc, bool shar

[PATCH 2/3] fix rename in container

2023-03-17 Thread YO4
Renaming files returns STATUS_INVALID_PARAMETE on a bind mounted file system in hyper-v container with FILE_RENAME_POSIX_SEMANTICS. Disable the use_posix_semantics flag and retry. --- winsup/cygwin/syscalls.cc | 10 ++ 1 file changed, 10 insertions(+) diff --git a/winsup/cygwin/syscalls

[PATCH 1/3] fix unlink in container

2023-03-17 Thread YO4
Deleting files returns STATUS_INVALID_PARAMETE on a bind mounted file system in hyper-v container with FILE_DISPOSITION_POSIX_SEMANTICS. Therefore fall back to default method. This code is suggeted by dscho and I change it more simple. --- winsup/cygwin/syscalls.cc | 5 - 1 file changed, 4 i

[PATCH 0/3] fix unlink/rename failure in hyper-v container

2023-03-17 Thread YO4
822 _unlink_nt: \??\C:\binded_dir\file_to_unlink, return status = 0x0 558 238207 [main] rm 1822 unlink: 0 = unlink(C:/binded_dir/file_to_unlink) I ran the test in Appveyor so you can view the entire log at https://ci.appveyor.com/project/YO4/test-msys2-in-container/builds/46532757/