darcs

Issue 1675 grief from lack of posix-style deletion semantics on Windows

Title grief from lack of posix-style deletion semantics on Windows
Priority bug Status resolved
Milestone Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, eivuokko, jaredj, kirby, kowey, simonmar, wglozer
Assigned To
Topics Windows

Created on 2009-11-05.15:13:19 by kowey, last changed 2022-04-12.16:15:09 by bfrk.

Messages
msg9208 (view) Author: kowey Date: 2009-11-05.15:13:15
We keep running into renameFile/deleteFile errors on Windows, the problem being
that Windows normally does not allow you to delete or move over an open file.

As I understand it, the current plan on darcs-users is to fiddle with the way we
open files so that get POSIX-style deletion semantics.

From http://lists.osuosl.org/pipermail/darcs-users/2009-October/021833.html :

dagit> According to that article we just need to pass FILE_SHARE_DELETE to
dagit> CreateFile when you open the file (the win32 api has funny names for
dagit> functions, just read the article and you'll see why fopen won't work
dagit> here).
msg9213 (view) Author: kirby Date: 2009-11-06.08:47:49
On Thu, Nov 5, 2009 at 4:13 PM, Eric Kow <bugs@darcs.net> wrote:
> As I understand it, the current plan on darcs-users is to fiddle with the way we
> open files so that get POSIX-style deletion semantics.

Alas, this is not enough... even if we say to Windows "you should
really allow us to delete the file while it's opened", it won't still
let us delete the directory where the file has been delete, until it
is closed.

I fear that our "move the file somewhere else, then delete it" (not
very clean, but it works) will be the final solution.

Salvatore
msg22976 (view) Author: bfrk Date: 2022-04-12.16:15:09
It doesn't look like this is still a problem or else the CI would 
produce lots of failures on Windows.
History
Date User Action Args
2009-11-05 15:13:19koweycreate
2009-11-05 15:13:37koweysetstatus: unknown -> needs-implementation
2009-11-05 15:17:46koweylinkissue1452 superseder
2009-11-06 08:47:51kirbysetmessages: + msg9213
2010-04-27 09:51:04koweysettitle: grief from not using posix-style deletion semantics on Windows -> grief from lack of posix-style deletion semantics on Windows
2022-04-12 16:15:09bfrksetstatus: needs-implementation -> resolved
messages: + msg22976