From: "Morten Welinder" <mwelinder@gmail.com>
To: "linux-os (Dick Johnson)" <linux-os@analogic.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: Deleting large files
Date: Wed, 7 May 2008 19:14:33 -0400 [thread overview]
Message-ID: <118833cc0805071614j49b10da6hfcbeb08cb3356afb@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.61.0805071820010.25395@chaos.analogic.com>
> 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. [...]
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
next prev parent reply other threads:[~2008-05-07 23:14 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-07 19:49 Morten Welinder
2008-05-07 20:10 ` Jan Engelhardt
2008-05-07 20:17 ` Xavier Bestel
2008-05-07 20:48 ` Jan Engelhardt
2008-05-07 22:34 ` linux-os (Dick Johnson)
2008-05-07 23:14 ` Morten Welinder [this message]
2008-05-08 23:01 ` Alan Cox
2008-05-11 10:30 ` Jan Engelhardt
2008-05-11 16:38 ` Enrico Weigelt
2008-05-20 14:33 ` Pavel Machek
2008-05-08 8:19 ` Matti Aarnio
2008-05-11 11:16 ` Christoph Hellwig
2008-05-11 16:42 ` Aneesh Kumar K.V
2008-05-08 17:29 ` Christian Kujau
[not found] ` <118833cc0805081110u7aad3921v3a1ec4187acc4ef4@mail.gmail.com>
2008-05-08 18:54 ` Christian Kujau
2008-05-17 12:15 ` Pavel Machek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=118833cc0805071614j49b10da6hfcbeb08cb3356afb@mail.gmail.com \
--to=mwelinder@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-os@analogic.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®