login
Header Space

 
 

Re: Deleting large files

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: linux-os (Dick Johnson) <linux-os@...>
Cc: linux-kernel <linux-kernel@...>
Date: Wednesday, May 7, 2008 - 7:14 pm

>  Suppose you had an N GB file that just filled up the disk. You now

That argument ought to stop right there.  If you believe that deleting a
file will necessarily and immediately give you back the space, then you
are wrong in the current state of the affairs already.

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; AFS did not do that last I looked a decade ago; versioning
file systems do not; journaling file systems might not.  File systems that
support undelete do not do that.  In short: assuming such a thing is a
bug in need of a fix today.

Right now, unlink is a commonly used syscall with unbounded response
time.  If your GUI program deletes a file, the GUI generally locks up until
the kernel feels like returning -- that is certainly not how you get a smooth
user experience.  Forking a process to do the deletion (a) is pathetic,
(b) is not currently done, and (c) does not work: you cannot get a result
right away, i.e., you lose error handling.

Morten
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Deleting large files, Morten Welinder, (Wed May 7, 3:49 pm)
Re: Deleting large files, Pavel Machek, (Sat May 17, 8:15 am)
Re: Deleting large files, Christian Kujau, (Thu May 8, 1:29 pm)
Re: Deleting large files, Matti Aarnio, (Thu May 8, 4:19 am)
Re: Deleting large files, Christoph Hellwig, (Sun May 11, 7:16 am)
Re: Deleting large files, Aneesh Kumar K.V, (Sun May 11, 12:42 pm)
Re: Deleting large files, linux-os (Dick Johnson), (Wed May 7, 6:34 pm)
Re: Deleting large files, Morten Welinder, (Wed May 7, 7:14 pm)
Re: Deleting large files, Pavel Machek, (Tue May 20, 10:33 am)
Re: Deleting large files, Jan Engelhardt, (Sun May 11, 6:30 am)
Re: Deleting large files, Enrico Weigelt, (Sun May 11, 12:38 pm)
Re: Deleting large files, Alan Cox, (Thu May 8, 7:01 pm)
Re: Deleting large files, Jan Engelhardt, (Wed May 7, 4:10 pm)
Re: Deleting large files, Xavier Bestel, (Wed May 7, 4:17 pm)
Re: Deleting large files, Jan Engelhardt, (Wed May 7, 4:48 pm)
speck-geostationary