>From: [EMAIL PROTECTED] (Bill Davidsen)
>> From: [EMAIL PROTECTED]
>> Message-Id: <[EMAIL PROTECTED]>
>> >> The file is already open, so this is a bug in the OS.
>>
>> > Or he was backing up a live system and mail came in (or was read or
>> >whatever). Having a file locked or truncated while backing it up makes
>> >it unreadable. Doing backups on a live system is a bug in the user.
>>
>> A OS that works as expected does not remove files that are open.
>> For this reason, it is impossible that the error code
>> "No such file or directory." is retrurned when a read request has been issued.
> It is obviously a Windows filesystem, "works as expected" and "does it
>wrong" are the same thing in that case... That's why I was hoping he
>would tell me this is SMB mounted and live, explaining the problem.
OK, this could be an explanation for a behaviour that does not
follow POSIX rules.
> Actually, most version of UNIX *do* delete the file, preventing
>reopen, and only preserve the file allocation until the last close. You
>might test to see if Solaris works that way, it might surprise you to
>see that an open file is deleted from the directory, even though the
>contents are intact for existing opens. The open by name may not have
>taken place when you think.
>Test:
> date >f.tmp; (ls -l f.tmp; rm f.tmp; ls -l f.tmp; cat) < f.tmp
I know how a filesystem should behave....
>From the information he gave us, I assumed that the filesystem was mounted
locally on a more or less POSIX compliant OS. In this case it would really a OS
bug regardless of the underlying filesystem.
Anyway, if the OS that exports the filesystem does not follow POSIX
rules, there is no way for any application to prent users from such bad experiences.
J�rg
EMail:[EMAIL PROTECTED] (home) J�rg Schilling D-13353 Berlin
[EMAIL PROTECTED] (uni) If you don't have iso-8859-1
[EMAIL PROTECTED] (work) chars I am J"org Schilling
URL: http://www.fokus.gmd.de/usr/schilling ftp://ftp.fokus.gmd.de/pub/unix
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]