mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andreas Dilger <adilger@turbolabs.com>
To: Michael Zhu <mylinuxk@yahoo.ca>
Cc: linux-kernel@vger.kernel.org
Subject: Re: something about ext2 file system
Date: Tue, 22 Jan 2002 12:22:39 -0700	[thread overview]
Message-ID: <20020122122239.A4014@lynx.turbolabs.com> (raw)
In-Reply-To: <20020122140613.51122.qmail@web14905.mail.yahoo.com>
In-Reply-To: <20020122140613.51122.qmail@web14905.mail.yahoo.com>; from mylinuxk@yahoo.ca on Tue, Jan 22, 2002 at 09:06:13AM -0500

On Jan 22, 2002  09:06 -0500, Michael Zhu wrote:
> 1.How the directory and file name information are
> stored on the disk? I mean is there a range of blocks
> set at disk format or intialize time for this kind of
> information?

Like most Unix filesystems, directories are just a special form of
a file, so they are stored in data blocks.  See the structure
ext2_dir_entry_2 in linux/include/ext2_fs.h for more info on the
exact layout on disk.

> 2.I know in ext2 the whole disk is made up of the boot
> block and some block groups. Each block groups
> contains super block,group descriptors,data block
> bitmap,inode bitmap,inode table and data blocks. The
> directory and file name information are stored in
> which part? In the data blocks?

As above - directories are
> 
> 3.Are file names and other metadata put into the same
> range of blocks?

No.  Only the filename and inode number are in the directory, along
with some data about the length of the directory entry.

> 4.Where can I find some detail information about ext2
> fiel system?

There are several papers which describe the structure of ext2
available on the internet.  One is probably available from
http://e2fsprogs.sourceforge.net/

Cheers, Andreas
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/


      reply	other threads:[~2002-01-22 19:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-22 14:06 Michael Zhu
2002-01-22 19:22 ` Andreas Dilger [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=20020122122239.A4014@lynx.turbolabs.com \
    --to=adilger@turbolabs.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mylinuxk@yahoo.ca \
    /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

all inboxes | Powered by JetHome®