public inbox for cygwin-patches@cygwin.com
 help / color / mirror / Atom feed
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: YO4 <ysno@ac.auone-net.jp>
Cc: cygwin-patches@cygwin.com
Subject: Re: [PATCH 0/3] fix unlink/rename failure in hyper-v container
Date: Fri, 17 Mar 2023 20:15:53 +0100	[thread overview]
Message-ID: <ZBS8aRN0HDdm3yZM@calimero.vinschen.de> (raw)
In-Reply-To: <20230317144346.871-1-ysno@ac.auone-net.jp>

Hi,

On Mar 17 23:43, YO4 wrote:
> Hello, cygwin developers.
> I am using msys2 and it is based on the cygwin codebase.
> I was working inside a windows container and encountered rm.exe and mv.exe failures.
> I would be honored if you could merge my patch into upstream.

The patchset looks basically ok, and I'm not opposed to apply it.
But I do wonder if we cant't come up with a better solution somehow.

The problem is that you will suffer another performance hit on top
of the fact that Cygwin is already slow anyway.  Every time you
run rm or rename, you will have to call the OS function twice.
So rm -r will become even slower.

The question here is, do we have a way to recognize a Hyper-V mount?

Have a look at fs_info::update() in mount.cc.  There's a lot of checking
for various filesystems and their quirks.  If we have a way to
distinguish a Hyper-V mount from a "normal" NTFS, we could add it as a
filesystem type of its own, and the "use_posix_semantics" flag would
simply never be set.

If we can do that, it's the cleaner solution, IMHO.

For that, can we start with you running 

  $ cd <your Hyper-V dir>
  $ /usr/lib/csih/getVolInfo .

and paste the output here?  If there's any chance we can recognize
a Hyper-V dir, we should take it.

Oh, and, btw., would you mind to recreate your git patches with your
real name, please?  I'm not hot on adding pseudonyms into the git
repo.  We all use our real names.  Also, a matching `Signed-Off-By:'
would be helpful.


Thanks,
Corinna

  parent reply	other threads:[~2023-03-17 19:15 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-17 14:43 YO4
2023-03-17 14:43 ` [PATCH 1/3] fix unlink in container YO4
2023-03-17 14:43 ` [PATCH 2/3] fix rename " YO4
2023-03-17 14:43 ` [PATCH 3/3] log disabling posix semantics YO4
2023-03-17 19:15 ` Corinna Vinschen [this message]
2023-03-18  5:29   ` [PATCH 0/3] fix unlink/rename failure in hyper-v container Yoshinao Muramatsu
2023-03-18 10:01     ` Corinna Vinschen
2023-03-20 13:06       ` Yoshinao Muramatsu
2023-03-20 14:51         ` Corinna Vinschen
2023-03-20 14:54           ` Corinna Vinschen
2023-03-20 20:37           ` Corinna Vinschen
2023-03-21 15:32             ` Yoshinao Muramatsu
2023-03-21 17:58               ` Corinna Vinschen
2023-03-23 16:40                 ` Yoshinao Muramatsu
2023-03-24 11:54                   ` Corinna Vinschen
2023-03-24 13:20                     ` Jon Turney
2023-03-24 13:22                       ` Corinna Vinschen
2023-03-24 14:20                         ` Jon Turney
2023-03-24 13:48                     ` Yoshinao Muramatsu
2023-03-20 11:50   ` [PATCH 0/3] fix unlink/rename failure in hyper-v container(regenerate) Yoshinao Muramatsu
2023-03-20 11:51     ` [PATCH 1/3] fix unlink in container Yoshinao Muramatsu
2023-03-20 11:51     ` [PATCH 2/3] fix rename " Yoshinao Muramatsu
2023-03-20 11:51     ` [PATCH 3/3] log disabling posix semantics Yoshinao Muramatsu
2023-03-20 12:12     ` [PATCH 0/3] fix unlink/rename failure in hyper-v container(regenerate) Corinna Vinschen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZBS8aRN0HDdm3yZM@calimero.vinschen.de \
    --to=corinna-cygwin@cygwin.com \
    --cc=cygwin-patches@cygwin.com \
    --cc=ysno@ac.auone-net.jp \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).