[GRASS-dev] Re: [GRASS GIS] #1158: Removing vector map in Windows
fails with "Unable to delete vector map"
GRASS GIS
trac at osgeo.org
Sat Sep 10 19:56:51 EDT 2011
#1158: Removing vector map in Windows fails with "Unable to delete vector map"
--------------------------+-------------------------------------------------
Reporter: lponti | Owner: grass-dev@…
Type: defect | Status: closed
Priority: blocker | Milestone: 6.4.2
Component: Vector | Version: 6.4.0
Resolution: fixed | Keywords: wingrass, g.mremove, wildcards, v.in.ogr, v.select, g.remove
Platform: MSWindows 7 | Cpu: Unspecified
--------------------------+-------------------------------------------------
Comment(by hamish):
Replying to [comment:51 mmetz]:
> A file can not be removed as long as it is kept open by some
application.
> This is a universal feature I guess. At least it applies to Linux and MS
Windows.
AFAIU it's rather different on Linux and MS Windows. On linux you can
delete an open file, and for all intents and purposes that works and it is
deleted, but the actual file isn't really gone on disk until the last
program that has it open has closed it. On Windows however if another
process has a file open you get a nasty error message.
It's sort of like Linux is asking to do a "lazy" umount, which disconnects
for new requests but leaves the line open in the background (usually
waiting for a hung NFS mount to revive), while the analogy for Windows
would be a normal umount, where it complains and fails if anything is
still using it.
I assume that file deletion on all/most UNIX file systems follow the same
manner as Linux in this regard.
Hamish
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1158#comment:53>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list