From: Geoffrey Wehrman <gwehrman@sgi.com>
To: Dave Chinner <david@fromorbit.com>
Cc: Mark Tinguely <tinguely@sgi.com>, xfs@oss.sgi.com
Subject: Re: [RFC 00/17] RFC parent inode pointers.
Date: Mon, 3 Feb 2014 23:37:58 -0600 [thread overview]
Message-ID: <20140204053757.GA19307@sgi.com> (raw)
In-Reply-To: <20140204000944.GX13997@dastard>
On Tue, Feb 04, 2014 at 11:09:44AM +1100, Dave Chinner wrote:
| On Tue, Jan 28, 2014 at 04:02:30PM -0600, Geoffrey Wehrman wrote:
| > On Tue, Jan 28, 2014 at 02:00:40PM +1100, Dave Chinner wrote:
| > | On Mon, Jan 27, 2014 at 01:41:47PM -0600, Mark Tinguely wrote:
| > | > 2) Add the filename to EA. Not a fan, but I will ask but if DMF needs it
| > | > for performance then it has to be done. My point was this assumes
| > | > that we can keep all the links' EA entries inline in the inode. A
| > | > couple 255 character files or several links of modest sized filenames
| > | > would negate that assumption. I tried to minimize the EA entries to
| > | > keep them inline in the inode. I will talk to the DMF group.
| > |
| > | Actually, I made the point about DMF needing them inline performance
| > | because that's an argument SGI might find persuasive. What I didn't
| > | say just then is that *I* need them inline, too, as online directory
| > | tree scrubbing needs to be able to do bulks scans, as does
| > | xfs_repair. However, I have idefinitely said this before in previous
| > | parent poitner discussions, so it should be no surprise here...
| >
| > I appologize in advance for my ignorance. What is "online directory
| > tree scrubbing" and how does it benefit from parent inode pointers?
|
| It will be a kernel thread that walks the directory tree
| periodically verifying that all inodes are reachable and that the
| directory tree is intact. It's the same principle as RAID array
| media scrubbing - proactive detection of errors that could cause
| failures and repairing them before an error is delivered to the
| application. The reason for wanting parent pointers is that it
| enables immediate repair of most corruptions as the scrubbing
| detects them without requiring duplicate copies of the metadata.
|
| IOWs, parent pointers are a fundamental part of bringing on-line
| repair functionality to XFS. While parent pointers are not directly
| mentioned in this document:
|
| http://xfs.org/index.php/Reliable_Detection_and_Repair_of_Metadata_Corruption
|
| There is a section on reverse mapping for used blocks and how to use
| that for online repair of detected damage. Parent pointers provide
| reverse mappings for the directory structure, and hence provide the
| same functionality. Parent pointers also means that if we get an IO
| error in a block in a file, we can identify the owner of the block
| by full path and offset into the file where the error has
| occurred...
|
| The v5 metadata format has an owner field in all metadata that has a
| single parent object for keeping such parent information, and it is
| intended for improving scrub-based validation and for identifying
| the owner of lost metadata blocks to improve recover from errors.
| i.e. reverse mapping is a one of the fundamental architectural
| requirements underlying the v5 metadata changes.
|
| The two missing pieces are the parent pointers for directory
| structure reverse mapping, and an AGF reverse mapping btree to
| enable arbitrary block->owner lookups. I have prototype code for the
| AGF rmap btree, and the parent pointers provide that functionality
| for the directory structure. With both of these implemented, we will
| be able to do fully-online filesystem metadata validity checking
| equivalent to 'xfs_repair -n' or better.....
|
| Reverse block mapping and directory structure parent pointers have
| been considered necessary for robust exception handling and online
| repair since we first started thinking about the CRC metadata format
| changes....
I understand now. Thanks for the detailed explanation!
--
Geoffrey Wehrman 651-683-5496 gwehrman@sgi.com
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
prev parent reply other threads:[~2014-02-04 5:38 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-15 22:00 [RFC 00/17] RFC parent inode pointers Mark Tinguely
2014-01-15 22:00 ` [RFC 01/17] xfs: (parent ptr) get offset when adding directory name Mark Tinguely
2014-01-15 22:00 ` [RFC 02/17] xfs: (parent ptr) get offset when removing " Mark Tinguely
2014-01-15 22:00 ` [RFC 03/17] xfs: (parent ptr) get offset when replacing a " Mark Tinguely
2014-01-15 22:00 ` [RFC 04/17] xfs: (parent ptr) add parent pointer support to xfs_sb.h Mark Tinguely
2014-01-15 22:00 ` [RFC 05/17] xfs: (parent ptr) add parent pointer support to attribute code Mark Tinguely
2014-01-15 22:00 ` [RFC 06/17] xfs: (parent ptr) add parent pointer support to inode v5 Mark Tinguely
2014-01-15 22:00 ` [RFC 07/17] xfs: (parent ptr) add parent pointer support to xfs_create Mark Tinguely
2014-01-15 22:00 ` [RFC 08/17] xfs: (parent ptr) add parent pointer support to xfs_symlink Mark Tinguely
2014-01-15 22:00 ` [RFC 09/17] xfs: (parent ptr) add parent pointer support to xfs_link Mark Tinguely
2014-01-15 22:00 ` [RFC 10/17] xfs: (parent ptr) add parent pointer support to xfs_remove Mark Tinguely
2014-01-15 22:00 ` [RFC 11/17] xfs: (parent ptr) add parent pointer support to xfs_rename Mark Tinguely
2014-01-15 22:00 ` [RFC 12/17] xfs: (parent ptr) add parent pointer support for user space Mark Tinguely
2014-01-15 22:00 ` [RFC 13/17] xfsprogs: add parent pointer support into Linux 3.10 inode 3 Mark Tinguely
2014-01-15 22:00 ` [RFC 14/17] xfsprogs: add parent pointer values to headers and fix repair Mark Tinguely
2014-01-15 22:00 ` [RFC 15/17] xfsprogs: add basic parent pointer support to xfs_db Mark Tinguely
2014-01-15 22:00 ` [RFC 16/17] xfsprogs: add parent pointer support to xfs_io Mark Tinguely
2014-01-15 22:00 ` [RFC 17/17] xfsprogs: add parent GEOM information Mark Tinguely
2014-01-16 5:56 ` [RFC 00/17] RFC parent inode pointers Dave Chinner
2014-01-17 21:25 ` Mark Tinguely
2014-01-18 3:12 ` Dave Chinner
2014-01-27 19:41 ` Mark Tinguely
2014-01-28 3:00 ` Dave Chinner
2014-01-28 22:02 ` Geoffrey Wehrman
2014-02-04 0:09 ` Dave Chinner
2014-02-04 5:37 ` Geoffrey Wehrman [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=20140204053757.GA19307@sgi.com \
--to=gwehrman@sgi.com \
--cc=david@fromorbit.com \
--cc=tinguely@sgi.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.