Thank you for your information about Linux file system. This must be taken in account of course.
> the other process(es) will just see the old contents.
Wow !!!
I am not sure whether this is what the Tom wanted.
For me this is a little bit confusing
Normally If I open the file with one and the same name I do want to see one and the same data.
You claim this is not the case under Linux. The result depends of some sort of luck.
Anyway, the Windows and Linux file system behave differently and I had proposed the approach that may have made the application behavior consistent across of the platforms, had I ?
> It is a shame that Windows cannot cope with deleted open files.
For the record.
I said Windows File System does provide such feature too. It is not provided "by default".
My best regards, Valeri
From: Roland Kuhn [mailto:rkuhn_at_e18.physik.tu-muenchen.de]
Sent: Mon 2/12/2007 3:47 AM
To: Fine, Valeri
Cc: Tom Roberts; ROOT Talk
Subject: Re: [ROOT] File conflict in Windows
Hi Valeri!
On 12 Feb 2007, at 00:12, Fine, Valeri wrote:
>> While the file is open in Root, I cannot delete it using Windows
>> explorer.
>
> Do you think it is unreasonable?
> There are two scenarios
> 1. Either you can not change (delete, write append ...) the file
> that had been open by some program
> or
> 2. You can, but that program should not try to access the file
> anymore or crash.
>
> The average Linux file system doesn't provide such level of the
> protection. I would like to call your attention that this is the
> feature of the Windows file system rather the concrete Windows
> application.
>
I just verified that ROOT v5.14.00b does "access; lstat; unlink;
access; open" on the file, which is safe on all Unix-like systems,
because the file created by open is independent from the one unlinked
before. So, using TFile(..., "RECREATE") is a safe way of writing a
new data set, irrespective of the fact whether the file is open in
another process or not: the other process(es) will just see the old
contents. It is a shame that Windows cannot cope with deleted open
files.
Ciao,
Roland
-- TU Muenchen, Physik-Department E18, James-Franck-Str., 85748 Garching Telefon 089/289-12575; Telefax 089/289-12570 -- CERN office: 892-1-D23 phone: +41 22 7676540 mobile: +41 76 487 4482 -- Any society that would give up a little liberty to gain a little security will deserve neither and lose both. - Benjamin Franklin -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GS/CS/M/MU d-(++) s:+ a-> C+++ UL++++ P+++ L+++ E(+) W+ !N K- w--- M + !V Y+ PGP++ t+(++) 5 R+ tv-- b+ DI++ e+++>++++ h---- y+++ ------END GEEK CODE BLOCK------Received on Mon Feb 12 2007 - 15:25:51 CET
This archive was generated by hypermail 2.2.0 : Mon Feb 12 2007 - 17:50:01 CET