lkml.org 
[lkml]   [2008]   [May]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Deleting large files

On Thursday 2008-05-08 01:14, Morten Welinder wrote:

>> Suppose you had an N GB file that just filled up the disk. You now
>> delete it, but get control back before it is really deleted. You
>> now start to write a new file that will eventually just fill up
>> the disk. [...]
>
>NFS does not do that -- in fact, I don't believe any file system does that
>unless you can guarantee at least that no other process or the kernel has
>that file open;

Iff a process still has the file open, your unlink will succeed immediately
anyway, and the real deallocation takes place when the last process runs
close(). Which shows an interesting fact too: not only unlink can block.


\
 
 \ /
  Last update: 2008-05-11 12:33    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site