From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id DC34C387088C; Fri, 24 Mar 2023 11:51:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DC34C387088C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1679658711; bh=nBNxMuiAokfb0OWm3+2o92TBfiCPBzwZsNmbb0trA4c=; h=From:To:Subject:Date:From; b=y67T664L4YekiOuwol2ZoGFM5yzLdH0dz1RvxJdkJ2Vv/LlT4YztejXJt9R1e425S xHS5MlP5452vYZkGAuzEbcdSf0goN6RWHu7ffceM91TvOBVSaDZWdoMLxlAOq8ElpI BnE458AjMQq/8x3OxNHXHQGu6r7YBpsjQbg3+V+0= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Corinna Vinschen To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin/main] Cygwin: log disabling posix semantics X-Act-Checkin: newlib-cygwin X-Git-Author: Yoshinao Muramatsu X-Git-Refname: refs/heads/main X-Git-Oldrev: 7666e248dd08ba96c12748fc4781388f57671ae5 X-Git-Newrev: 87ab6c7b26bf3c925183d7e439985db070b03b39 Message-Id: <20230324115151.DC34C387088C@sourceware.org> Date: Fri, 24 Mar 2023 11:51:51 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D87ab6c7b26b= f3c925183d7e439985db070b03b39 commit 87ab6c7b26bf3c925183d7e439985db070b03b39 Author: Yoshinao Muramatsu AuthorDate: Mon Mar 20 20:51:02 2023 +0900 Commit: Corinna Vinschen CommitDate: Tue Mar 21 18:56:52 2023 +0100 Cygwin: log disabling posix semantics =20 Add log when workaround occurs =20 Signed-off-by: Yoshinao Muramatsu Diff: --- winsup/cygwin/syscalls.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index 4843502c6847..d5b44c37858c 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -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 !=3D STATUS_CANNOT_DELETE && status !=3D STATUS_INVALID_PARAMETER) - goto out; + { + debug_printf ("NtSetInformationFile returns %y " + "with posix semantics. Disable it and retry.", sta= tus); + goto out; + } } =20 /* 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 =3D 0; goto ignore_posix_semantics_retry; }