* AW: AW: [gentoo-user] [OT] Why directories aren't files?
@ 2006-09-18 12:20 99% Noack, Sebastian
0 siblings, 0 replies; 1+ results
From: Noack, Sebastian @ 2006-09-18 12:20 UTC (permalink / raw
To: gentoo-user
Hi,
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().
Regards
Sebastian Noack
> -----Ursprüngliche Nachricht-----
> Von: Matteo Pillon [mailto:matteo.pillon@gmail.com]
> Gesendet: Montag, 18. September 2006 13:50
> An: gentoo-user@lists.gentoo.org
> Betreff: Re: AW: [gentoo-user] [OT] Why directories aren't files?
>
> Hi,
>
> On Mon, Sep 18, 2006 at 11:49:38AM +0200, Noack, Sebastian wrote:
> > But independent from this aspect, a file refers in its inode to a
> > chunk of storage on the hard disk (or other storage medias), which
> > contains its data. But some files like directories don't contain data.
>
> A directory IS like a file (in my opinion), it's an inode with
> data, you can also see it doing an ls -l:
> drwxr-xr-x 2 pmatthew users 4096 27 dic 2005 a
> drwxr-xr-x 2 pmatthew users 40960 22 mar 16:20 b
> Directory 'a' shows a size of 4096, the block size, as it contains
> only a few files and listing them with their associated inode, needs
> only a block, but 'b' contains a lot of files and so needs 10 blocks
> to store the inode-filename list.
>
> I don't have much knoledge of how ext2 works under the hood, just
> guessing from the behaviour I see from higher-level tools.
>
> Thanks for your replies.
>
> Bye.
>
> --
> * Pillon Matteo
> --
> gentoo-user@gentoo.org mailing list
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2006-09-18 12:20 99% AW: AW: [gentoo-user] [OT] Why directories aren't files? Noack, Sebastian
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox