linux-xfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Darrick J. Wong" <darrick.wong@oracle.com>
To: Eric Sandeen <sandeen@sandeen.net>
Cc: Eric Sandeen <sandeen@redhat.com>,
	xfs <linux-xfs@vger.kernel.org>,
	amir73il@gmail.com
Subject: Re: [PATCH] xfs_repair: handle missing extent states
Date: Mon, 18 Sep 2017 10:30:06 -0700	[thread overview]
Message-ID: <20170918173006.GF6540@magnolia> (raw)
In-Reply-To: <ffab0b07-0bdb-8514-dd20-2c1136ff5580@sandeen.net>

On Mon, Sep 18, 2017 at 12:18:50PM -0500, Eric Sandeen wrote:
> 
> 
> On 9/18/17 12:16 PM, Eric Sandeen wrote:
> >> @@ -812,6 +813,12 @@ _("%s fork in %s inode %" PRIu64 " claims used block %" PRIu64 "\n"),
> >>  					forkname, ftype, ino, b);
> >>  				goto done;
> >>  
> >> +			case XR_E_COW:
> >> +				do_warn(
> >> +_("%s fork in %s inode %" PRIu64 " claims CoW block %" PRIu64 "\n"),
> >> +					forkname, ftype, ino, b);
> >> +				goto done;
> >> +
> > why do cow blocks get a special case and custom warning vs the above cases
> > that just say "metadata?"
> > 
> > Obviously it's just nitpicking over the do_warn message string, just
> > double checking on the consistency front. 
> 
> And this was also found via the rmap, but that fact isn't printed like
> it is for every other type.  For that reason I'd probably rather just add
> XR_RE_COW above the /* fallthrough */ too, for consistency.  Thoughts?

Strictly speaking, CoW blocks aren't metadata; they're, uh, alternate
data.  I'd rather have xfs_repair deliver a more specific message about
the other alleged owner of a block so I'd know where to start looking --
"claims CoW blocks" implies that I ought to start looking at the rmapbt
for cow-owned blocks and the refcountbt, vs. just "shares with metadata,
urk".

That said, we probably ought to have the rmapbt scan set XR_E_COW1 and
have the refcountbt scan set XR_E_COW (similar to what we do for things
like INUSE/INUSE1).  Will try to work on that for 4.14, but for now
let's at least not abort xfs_repair here.

--D

> 
> Thanks,
> -Eric
> --
> To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2017-09-18 17:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-18 16:39 [PATCH] xfs_repair: handle missing extent states Darrick J. Wong
2017-09-18 17:16 ` Eric Sandeen
2017-09-18 17:18   ` Eric Sandeen
2017-09-18 17:30     ` Darrick J. Wong [this message]
2017-09-18 17:35       ` Eric Sandeen
2017-09-18 17:30   ` Darrick J. Wong

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=20170918173006.GF6540@magnolia \
    --to=darrick.wong@oracle.com \
    --cc=amir73il@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).