mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* something about ext2 file system
@ 2002-01-22 14:06 Michael Zhu
  2002-01-22 19:22 ` Andreas Dilger
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Zhu @ 2002-01-22 14:06 UTC (permalink / raw)
  To: linux-kernel

Hello, I have some questions about ext2 file system.

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?

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?

3.Are file names and other metadata put into the same
range of blocks?

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

Thanks in advance.

Michael


______________________________________________________________________ 
Web-hosting solutions for home and business! http://website.yahoo.ca

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: something about ext2 file system
  2002-01-22 14:06 something about ext2 file system Michael Zhu
@ 2002-01-22 19:22 ` Andreas Dilger
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Dilger @ 2002-01-22 19:22 UTC (permalink / raw)
  To: Michael Zhu; +Cc: linux-kernel

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/


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-01-22 19:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-22 14:06 something about ext2 file system Michael Zhu
2002-01-22 19:22 ` Andreas Dilger

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®