1 |
Hi, |
2 |
|
3 |
interesting. You are right. But so it would be (maybe not the most usable but) the most consequentially solution to dump the data of the directory on read(). |
4 |
|
5 |
Regards |
6 |
Sebastian Noack |
7 |
|
8 |
|
9 |
|
10 |
> -----Ursprüngliche Nachricht----- |
11 |
> Von: Matteo Pillon [mailto:matteo.pillon@×××××.com] |
12 |
> Gesendet: Montag, 18. September 2006 13:50 |
13 |
> An: gentoo-user@l.g.o |
14 |
> Betreff: Re: AW: [gentoo-user] [OT] Why directories aren't files? |
15 |
> |
16 |
> Hi, |
17 |
> |
18 |
> On Mon, Sep 18, 2006 at 11:49:38AM +0200, Noack, Sebastian wrote: |
19 |
> > But independent from this aspect, a file refers in its inode to a |
20 |
> > chunk of storage on the hard disk (or other storage medias), which |
21 |
> > contains its data. But some files like directories don't contain data. |
22 |
> |
23 |
> A directory IS like a file (in my opinion), it's an inode with |
24 |
> data, you can also see it doing an ls -l: |
25 |
> drwxr-xr-x 2 pmatthew users 4096 27 dic 2005 a |
26 |
> drwxr-xr-x 2 pmatthew users 40960 22 mar 16:20 b |
27 |
> Directory 'a' shows a size of 4096, the block size, as it contains |
28 |
> only a few files and listing them with their associated inode, needs |
29 |
> only a block, but 'b' contains a lot of files and so needs 10 blocks |
30 |
> to store the inode-filename list. |
31 |
> |
32 |
> I don't have much knoledge of how ext2 works under the hood, just |
33 |
> guessing from the behaviour I see from higher-level tools. |
34 |
> |
35 |
> Thanks for your replies. |
36 |
> |
37 |
> Bye. |
38 |
> |
39 |
> -- |
40 |
> * Pillon Matteo |
41 |
> -- |
42 |
> gentoo-user@g.o mailing list |
43 |
|
44 |
|
45 |
-- |
46 |
gentoo-user@g.o mailing list |