From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1GPIEJ-0003yN-MM for garchives@archives.gentoo.org; Mon, 18 Sep 2006 12:28:08 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k8ICQl2J000824; Mon, 18 Sep 2006 12:26:47 GMT Received: from mail.autoonline.de (mail.autoonline.de [195.158.141.68]) by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k8ICLPIA007079 for ; Mon, 18 Sep 2006 12:21:25 GMT X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Subject: AW: AW: [gentoo-user] [OT] Why directories aren't files? Date: Mon, 18 Sep 2006 14:20:21 +0200 Message-ID: <7B97065F451A23458ED0C63B4CA5A2EA7C4AD0@SRV-EXCHANGE.AUTOonline.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: AW: [gentoo-user] [OT] Why directories aren't files? thread-index: AcbbGMtfAA9HgruDRZS3g/Pc/B3PQwAA3Teg From: "Noack, Sebastian" To: X-MIME-Autoconverted: from quoted-printable to 8bit by robin.gentoo.org id k8ICLPIA007079 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id k8ICQl2X000824 X-Archives-Salt: 3dafc8c4-30a9-455e-8907-e64311c1a808 X-Archives-Hash: c460b09e24b96d9e5d7981d046ae2ac1 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=FCngliche 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? >=20 > Hi, >=20 > 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. >=20 > 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. >=20 > I don't have much knoledge of how ext2 works under the hood, just > guessing from the behaviour I see from higher-level tools. >=20 > Thanks for your replies. >=20 > Bye. >=20 > -- > * Pillon Matteo > -- > gentoo-user@gentoo.org mailing list --=20 gentoo-user@gentoo.org mailing list