From: Ingo Oeser <ioe-lkml@rameria.de>
To: linux-kernel@vger.kernel.org
Subject: Re: Kernel 2.6.4 Hang in utime() on swap file
Date: Sun, 21 Mar 2004 10:52:33 +0100 [thread overview]
Message-ID: <200403211052.34611.ioe-lkml@rameria.de> (raw)
In-Reply-To: <20040320135530.7f06a7b8.akpm@osdl.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Saturday 20 March 2004 22:55, Andrew Morton wrote:
> ho hum. We do this to prevent anyone from ftruncate()ing the swapfile
> while it is in use. That can destroy filesystems. Let me think about it a
> bit.
Maybe you can deny to open such files with proxy file ops and proxy
block dev ops.
So you implement all file operations and just give back errors.
This has no speed penalty for the hot path and implements correct error
handling.
Only penalty is code bloat, but this is normal for additional error
handling ;-)
But maybe I'm totally wrong here and this is just another case of
"doctor it hurts...".
Regards
Ingo Oeser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAXWXhU56oYWuOrkARAtRAAKDjjyxyXbuH1LS+cJjGIduWYvEc7gCg4Cy2
wfjw7RtJtABR0MtvL07UPGw=
=rB7n
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2004-03-21 19:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-20 18:16 Michael W. Shaffer
2004-03-20 21:55 ` Andrew Morton
2004-03-21 9:52 ` Ingo Oeser [this message]
2004-03-20 22:23 Michael W. Shaffer
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=200403211052.34611.ioe-lkml@rameria.de \
--to=ioe-lkml@rameria.de \
--cc=linux-kernel@vger.kernel.org \
/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®