2010-11-25 06:41:09

by Nivedita J N

[permalink] [raw]
Subject: Query regarding ext4 filesystem

Hi,
I'm planning to use ext4 filesystem in my ubuntu machine.I am doing
a detailed search on the filesystem.I would like to know where the
journal is stored in ext4 file system? Is it visible?

--
Thanks & Regards,
Nivedita J Nair





2010-11-25 15:37:56

by Nick Dokos

[permalink] [raw]
Subject: Re: Query regarding ext4 filesystem

> I'm planning to use ext4 filesystem in my ubuntu machine.I am doing
> a detailed search on the filesystem.I would like to know where the
> journal is stored in ext4 file system? Is it visible?
>

You can use debugfs for this - do ``man 8 debugfs'' for more info. The
journal is generally inode 8 (you can do

dumpe2fs -h /dev/FOO | grep "Journal inode:"

to make sure), so in debugfs you can do

stat <8>
ex <8>

to get metadata (size, perms, etc.) and extent information and

logdump <OPTIONS>

to examine the contents of the journal - see the debugfs man page
for <OPTIONS> info.

HTH,
Nick