[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnu-arch-users] Re: give us a hand with arch
From: |
Florian Weimer |
Subject: |
Re: [Gnu-arch-users] Re: give us a hand with arch |
Date: |
Mon, 29 Sep 2003 22:56:20 +0200 |
User-agent: |
Mutt/1.5.4i |
On Mon, Sep 29, 2003 at 10:40:49PM +0200, Robin Farine wrote:
> >>>>> "Florian" == Florian Weimer <address@hidden> writes:
>
> Florian> Hans Reiser once told me that they won't overwrite unused
> Florian> disk space with zeros, even when it might become visible
> Florian> using mmap() -- for performance reasons.
>
> I don't follow you. What do mean by "unused disk space becoming
> visible using mmap()"? mmap() applied to a regular file can only
> access the area corresponding to the contents of the file, and thus it
> cannot access unused disk space, no?
The last block of a file contains data after the actual end of the file
(back then, ReiserFS didn't optimize these cases). This data is also
present in the page cache. You won't see it normally, because you
cannot read() beyond the end of the file, but mmap() can only map
complete pages, so you suddenly see the data (and it was random data
from kernel or user space, typically not something which ever was on
disk).
- Re: [Gnu-arch-users] Re: give us a hand with arch, (continued)
- Re: [Gnu-arch-users] Re: give us a hand with arch, Samium Gromoff, 2003/09/29
- Re: [Gnu-arch-users] Re: give us a hand with arch, Miles Bader, 2003/09/29
- Re: [Gnu-arch-users] Re: give us a hand with arch, Tupshin Harper, 2003/09/29
- Re: [Gnu-arch-users] Re: give us a hand with arch, Robin Farine, 2003/09/29
- Re: [Gnu-arch-users] Re: give us a hand with arch, Florian Weimer, 2003/09/29
- Re: [Gnu-arch-users] Re: give us a hand with arch, Robin Farine, 2003/09/29
- Re: [Gnu-arch-users] Re: give us a hand with arch,
Florian Weimer <=
- Re: [Gnu-arch-users] Re: give us a hand with arch, Robin Farine, 2003/09/29
- Re: [Gnu-arch-users] Re: give us a hand with arch, Miles Bader, 2003/09/29
- Re: [Gnu-arch-users] Re: give us a hand with arch, Robin Farine, 2003/09/29
- Re: [Gnu-arch-users] Re: give us a hand with arch, Andrew Suffield, 2003/09/29
- [OT] psychofs (was: [Gnu-arch-users] Re: give us a hand with arch), Robin Farine, 2003/09/29
- Re: [Gnu-arch-users] Re: give us a hand with arch, David Brown, 2003/09/29
- Re: [Gnu-arch-users] Re: give us a hand with arch, Andrew Suffield, 2003/09/29
- Re: [Gnu-arch-users] Re: give us a hand with arch, Stephen J. Turnbull, 2003/09/29
- Re: [Gnu-arch-users] Re: give us a hand with arch, Charles Duffy, 2003/09/29
- Re: [Gnu-arch-users] Re: give us a hand with arch, Florian Weimer, 2003/09/30