[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kmail-devel
Subject:    Re: exit() on low diskspace
From:       Marc Mutz <Marc.Mutz () uni-bielefeld ! de>
Date:       2001-08-01 16:39:42
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 01 August 2001 15:19, Carsten Pfeiffer wrote:
<snip>
> > Saving in tmp is an idea, another alternative is to
> > create a, say, 100kb file at startup, then if disk space is
> > exhausted erase that file and call kernel->dumpDeadLetters.
>
> Ah, this is another good idea!
<snip>

No, it is not. Suppose root is doing a 
tar xfz some-big.tar.gz
on the /home filesystem and fills it up to
over 95% temporarily. A normal user can't use any blocks that are in 
the reserved space for root. So if the user unlinks a 100k file and 
root is more that 100k over the 95% mark, then the user will not be 
able to reclaim the 100k he just freed. You can use mmap, though, to 
overwrite the 100k file or open the file for appending, seek back to 
pos 0 and start writing (?).

Marc

- -- 
Marc Mutz <Marc@Mutz.com>
http://marc.mutz.com/
http://www.mathematik.uni-bielefeld.de/~mmutz/
http://EncryptionHOWTO.sourceforge.net/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE7aDDO3oWD+L2/6DgRAqKcAKDZQZRAbzePS3L4jQfzRHLpTw6ypgCgqO29
lCsyfN0+bd8ZNVLS28GRfU0=
=fpP1
-----END PGP SIGNATURE-----
_______________________________________________
Kmail Developers mailing list
Kmail@master.kde.org
http://master.kde.org/mailman/listinfo/kmail

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic