From: Dave Chinner <david@fromorbit.com>
To: Eric Sandeen <sandeen@sandeen.net>
Cc: "Darrick J. Wong" <darrick.wong@oracle.com>,
Eric Sandeen <sandeen@redhat.com>,
linux-xfs <linux-xfs@vger.kernel.org>
Subject: Re: [PATCH] xfs_metadump: tag metadump image with attribute flags
Date: Wed, 24 May 2017 13:26:32 +1000 [thread overview]
Message-ID: <20170524032632.GA17542@dastard> (raw)
In-Reply-To: <41c04794-5aef-5e2e-17ad-9ccf8aac488c@sandeen.net>
On Tue, May 23, 2017 at 10:47:50AM -0500, Eric Sandeen wrote:
> On 5/23/17 10:46 AM, Darrick J. Wong wrote:
> > On Mon, May 22, 2017 at 07:33:35PM -0500, Eric Sandeen wrote:
> >> After the long discussion about warning the user and/or consumer
> >> of xfs_metadumps about dirty logs, it crossed my mind that we
> >> could use the reserved slot in the metadump header to tag the
> >> file with attributes, so the consumer of the metadump knows how
> >> it was created.
> >>
> >> This patch adds 3 flags to describe the metadump: dirty log,
> >> obfuscated, and full blocks (unused portions of metadata blocks
> >> are not zeroed out).
> >>
> >> It then adds a new option to xfs_mdrestore, "-i" to show info,
> >> which can be used with or without a target file:
>
>
> >> +/* mb_flags */
> >> +#define XFS_METADUMP_OBFUSCATED (1 << 0)
> >> +#define XFS_METADUMP_FULLBLOCKS (1 << 1)
> >> +#define XFS_METADUMP_DIRTYLOG (1 << 2)
> >
> > If we always wrote zero for mb_reserved previously, how do we
> > distinguish between a non-obfuscated partial-block clean-log metadump
> > and an old metadump? Do we care?
>
> Oh right. ;)
>
> > I imagine metadumps are fairly transitory in nature, so it might not be
> > a big deal, and probably not worth burning 1/8 of our flag-space over
> > since AFAICT we don't use the(se) flags for any serious behavioral
> > changes.
>
> OTOH, how many flags would we possibly have? I'm ok with adding a
> "we have flags" flag, too.
We can't extend the metadump header in a backwards compatible way
unless mdrestore already rejects metadumps with non-zero mb_reserved
fields....
Cheers,
Dave.
--
Dave Chinner
david@fromorbit.com
next prev parent reply other threads:[~2017-05-24 3:26 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-23 0:33 [PATCH] xfs_metadump: tag metadump image with attribute flags Eric Sandeen
2017-05-23 15:46 ` Darrick J. Wong
2017-05-23 15:47 ` Eric Sandeen
2017-05-24 3:26 ` Dave Chinner [this message]
2017-05-24 3:29 ` Eric Sandeen
2017-05-24 16:28 ` Eric Sandeen
2017-05-24 22:25 ` Dave Chinner
2017-05-24 22:34 ` Eric Sandeen
2017-05-26 16:13 ` [PATCH V2] xfs_metadump: tag metadump image with informational flags Eric Sandeen
2017-06-21 19:18 ` Eric Sandeen
2017-06-21 20:34 ` Darrick J. Wong
2017-06-21 20:36 ` Eric Sandeen
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=20170524032632.GA17542@dastard \
--to=david@fromorbit.com \
--cc=darrick.wong@oracle.com \
--cc=linux-xfs@vger.kernel.org \
--cc=sandeen@redhat.com \
--cc=sandeen@sandeen.net \
/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.