Re: ext3 File System Debugger

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commence  Mani Mahadevan quotation:

> Hi,
> I tried to retrieve a deleted file from ext3 FS using debugfs,
> but in vain.
> Is there any seperate ext3 file system debugger?

File deletion in ext3 is done differently to ext2, even though the
on-disk formats of both filesystems are identical.  Here is a message
that Stephen Tweedie wrote on the matter.

-------------------- Start of forwarded message --------------------
From: "Stephen C. Tweedie" <sct@redhat.com>
To: ext3-users@redhat.com
Subject: Re: data recovery openoffice.sx? on ext3-partition
Message-ID: <20020904134536.H2507@redhat.com>
Date: Wed, 4 Sep 2002 13:45:36 +0100

Hi,

On Wed, Sep 04, 2002 at 09:35:50AM -0300, Alexis S. L. Carvalho wrote:
 
> Thus spake Stephen C. Tweedie:
> > Journalling requires the delete to be done immediately on disk for
> > various subtle reasons that I'll go into again if there's interest. :)
> 
> I'm interested :) - though I'll understand if you just tell me to search
> the archives.

Truncate transactions (like the ones implicit in delete) can get
_really_ large.  The filesystem has bounds on the size of a
transaction, but there are essentially no bounds on the amount of
metadata a truncate can modify.  So to fit things into the limited
space in the journal, ext3 needs to be able to split a truncate over
multiple transactions.

And that is not possible unless we record, on disk, the incremental
progress of each bit of the truncate.  If we didn't record progress,
then if we crashed in the middle of the truncate, the metadata on disk
would be in a mess, and ext3 is supposed to prevent that!

But a side-effect of keeping the on-disk progress of the truncate
coherent is that once the truncate completes, all record of the
original data has been wiped out.

Cheers, 
 Stephen



_______________________________________________
Ext3-users mailing list
Ext3-users@redhat.com
https://listman.redhat.com/mailman/listinfo/ext3-users


-------------------- End of forwarded message --------------------


-- 
 /                          |
[|] Sean Neakums            |  Questions are a burden to others;
[|] <sneakums@zork.net>     |      answers a prison for oneself.
 \                          |
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux