From: Dave Chinner <david@fromorbit.com>
To: Stan Hoeppner <stan@hardwarefreak.com>
Cc: Yongmin <dev.yongmin@gmail.com>, "xfs@oss.sgi.com" <xfs@oss.sgi.com>
Subject: Re: Hello, I have a question about XFS File System
Date: Sat, 8 Mar 2014 10:09:15 +1100 [thread overview]
Message-ID: <20140307230915.GS6851@dastard> (raw)
In-Reply-To: <531A4600.7050906@hardwarefreak.com>
On Fri, Mar 07, 2014 at 04:19:44PM -0600, Stan Hoeppner wrote:
> Please reply to the mailing list as well as the individual.
>
> Note that you stated:
>
> '...the concentrated part of mine is "Deleted File Recovery"'
>
> On 3/6/2014 10:02 PM, Yongmin wrote:
> >
> > Yes! there are no actual file data in journaling part.
> >
> > BUT, by analyzing journaling part, we can get a Inode Core Information which was deleted.
> > In Inode Core, there are many information about the actual data, i.e. start address, file length etc.
>
> Analyzing the journal code may inform you about structures, but it won't
> inform you about on disk locations of the structures and how to find
> them. If a file has been deleted, no information about that is going to
> exist in the journal for more than a few seconds before the transaction
> is committed and the entry removed from the journal.
Well, we don't actually "remove" information from the log. We update
pointers that indicate what the active region is, but we never
physically "remove" anything from it. IOWs, the information is in
the journal until it wraps around and is over written by new
checkpoints....
> > By using those information, Recovering delete file can be done.
> >
> > So the analysis of Journaling part is absolutely needed.
>
> I disagree. Again, the journal log is unrelated to "deleted file
> recovery" in a forensics scenario.
>
> I think Dave and Jeff both missed the fact that you're interested only
> in deleted file recovery, not in learning how the journal works for the
> sake of learning how the journal works.
Oh, no, I saw it and didn't think it was worth commenting on. I
think it's a brain-dead concept trying to do undelete in the
filesystem. "recoverable delete" was a problem solved 30 years ago -
it's commonly known as a trash bin and you do it in userspace with a
wrapper around unlink that calls rename(2) instead. And then "empty
trashbin" is what does the unlink and permanently deletes the files.
Besides, from a conceptual point of view after-the-fact filesystem
based undelete is fundamentally flawed. i.e. the journal is a
write-ahead logging journal and so can only be used to roll the
filesystem state forwardi in time. Undelete requires having state
and data in the journal that allows the filesystem to be rolled
*backwards in time*. XFS simply does not record such information in
the log and so parsing the log to "undelete files by transaction
rollback" just doesn't work.
Cheers,
Dave.
--
Dave Chinner
david@fromorbit.com
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
next prev parent reply other threads:[~2014-03-07 23:09 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-06 9:15 Hello, I have a question about XFS File System Yongmin
2014-03-06 20:30 ` Stan Hoeppner
[not found] ` <279D0A265E5D4AF5B099BFAD4E8B1700@gmail.com>
2014-03-07 22:19 ` Stan Hoeppner
2014-03-07 22:40 ` Shaun Gosse
2014-03-08 2:22 ` Stan Hoeppner
2014-03-07 23:09 ` Dave Chinner [this message]
2014-03-08 0:38 ` Greg Freemyer
2014-03-09 0:28 ` Dave Chinner
2014-03-10 17:53 ` Jay Ashworth
2014-03-08 2:08 ` Stan Hoeppner
2014-03-08 3:24 ` Eric Sandeen
2014-03-06 22:59 ` Dave Chinner
2014-03-07 2:23 ` Jeff Liu
2014-03-07 4:19 ` Dave Chinner
2014-03-07 5:23 ` Jeff Liu
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=20140307230915.GS6851@dastard \
--to=david@fromorbit.com \
--cc=dev.yongmin@gmail.com \
--cc=stan@hardwarefreak.com \
--cc=xfs@oss.sgi.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.