Re: Cygwin git and windows network shares
- From
- Christopher Faylor <me@cgf.cx>
- Date
- Jun 17, 2006, 01:23 UTC
- Message-ID
- <20060617012338.GB23924@trixie.casa.cgf.cx>
- In-Reply-To
- <17555.21858.292000.494454@lapjr.intranet.kiel.bmiag.de>
On Sat, Jun 17, 2006 at 03:05:38AM +0200, Juergen Ruehle wrote:
Show 26 quoted lines
>Christopher Faylor writes:
> > I also meant to ask if there was an i is nonzero after the call to the
> > rename() above? If so, what was the errno? If not, it is a huge
> > problem if rename is reporting that it is able to rename a file but is
> > not actually doing it.
>
>After some testing the conclusion is that it's not lying, but only
>failing in interesting ways on my (and seemingly also Niklas') system:
>
> - rename on NTFS succeeds (and returns 0)
>
> - rename on FAT32 succeeds if target does not exist (and returns 0)
>
> rename on FAT32 fails if target exists with EACCESS
>
> (manual mv on commandline works)
>
> - rename on a network share always hangs for a while and then fails
> with EBUSY (even if target does not exist)
>
> (share served by XP, tested both NTFS and FAT32)
>
> (manual mv still works)
>
>Various combinations of server, ntsec, and smbntsec didn't seem to
>make a difference; /etc/{passwd,group} have been freshly created.Thanks. I really appreciate the details. I've passed them on to the last person to touch the rename code.
cgf