From: Matteo Pillon <matteo.pillon@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: AW: [gentoo-user] [OT] Why directories aren't files?
Date: Mon, 18 Sep 2006 13:50:26 +0200 [thread overview]
Message-ID: <20060918115026.GB12486@neptune.octopus> (raw)
In-Reply-To: <7B97065F451A23458ED0C63B4CA5A2EA7C4ACC@SRV-EXCHANGE.AUTOonline.local>
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
prev parent reply other threads:[~2006-09-18 11:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-18 9:49 AW: [gentoo-user] [OT] Why directories aren't files? Noack, Sebastian
2006-09-18 11:50 ` Matteo Pillon [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060918115026.GB12486@neptune.octopus \
--to=matteo.pillon@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox