Re: Reiser3/4 & Ext2/3 was: First impressions of reiserfs4

From: Bernd Eckenfels
Date: Thu Sep 11 2003 - 20:18:58 EST


In article <20030911171513.GA18399@xxxxxxxxxxxxx> you wrote:
>> Well, in fact empty files do not need this block.
>>
>
> True. Do you know if ext2/3 allocates the block even for empty files? So
> if you create the file, it should be sparse until you write something to it,
> right? Does the touch command do this?

At least it reserves an inode, and:

> touch /bla
> ls -lis bla
62 0 -rw-rw-r-- 1 ecki ecki 0 Sep 12 03:13 bla
> echo -n 1 >> /bla
> ls -lis bla
62 1 -rw-rw-r-- 1 ecki ecki 1 Sep 12 03:13 bla

looks like it reserves no data blocks until first written.

On XFS btw it starts with 4 blocks (2k?)

> ls -lis ~ecki/bla
7641042 4 -rw-rw-r-- 1 ecki ecki 1 Sep 12 03:13 bla

Greetings
Bernd
--
eckes privat - http://www.eckes.org/
Project Freefire - http://www.freefire.org/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/