From: "Verma, Vishal L" <vishal.l.verma@intel.com>
To: "Rudoff, Andy" <andy.rudoff@intel.com>
Cc: "linux-nvdimm@lists.01.org" <linux-nvdimm@lists.01.org>
Subject: Re: [ndctl PATCH] ndctl, check: Add a sigbus handler to detect metadata corruption
Date: Fri, 14 Apr 2017 19:00:48 +0000 [thread overview]
Message-ID: <1492196446.1657.1.camel@intel.com> (raw)
In-Reply-To: <F7CF62AA-B1F5-486D-AA87-F61674B86AC5@intel.com>
On Fri, 2017-04-14 at 00:10 +0000, Rudoff, Andy wrote:
> > If we have poison/badblocks in the BTT metadata sections, the mmap-
> > reads
> > happening in the checker will trigger a SIGBUS, and the program
> > will
> > halt abruptly. Add a sigbus handler which notifies the user of
> > this, and
> > prints out a relevant error message:
> >
> > namespace5.0: namespace_check: checking namespace5.0
> > namespace5.0: btt_discover_arenas: found 1 BTT arena
> > namespace5.0: btt_check_arenas: checking arena 0
> > namespace5.0: namespace_check: Received a SIGBUS
> > namespace5.0: namespace_check: Metadata corruption found, recovery
> > is not possible
> > error checking namespaces: Bad address
>
> If in repair mode, should a SIGBUS cause you to set the error state
> in the associated arena?
>
> -andy
>
So I thought a bit about this -
While we can set the error state, that leaves the BTT with no way to
get any data off it (currently).
If we allow the kernel to enable the namespace, the user has some
chance to do at least partial recovery until they hit the badblock.
(assuming the badblock is in the map, which is the largest on-disk
structure). If it is on the flog or info block, then, yes, there is no
recovery.
-Vishal
_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm
next prev parent reply other threads:[~2017-04-14 19:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-14 0:02 [ndctl PATCH] ndctl, check: Add a sigbus handler to detect metadata corruption Vishal Verma
2017-04-14 0:10 ` Rudoff, Andy
2017-04-14 19:00 ` Verma, Vishal L [this message]
2017-04-14 19:04 ` Dan Williams
2017-04-14 19:26 ` Rudoff, Andy
2017-04-14 19:40 ` Verma, Vishal L
2017-04-14 19:52 ` Rudoff, Andy
2017-04-14 20:28 ` Verma, Vishal L
2017-04-14 20:31 ` Rudoff, Andy
2017-04-17 15:37 ` Jeff Moyer
2017-04-18 16:09 ` Verma, Vishal L
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=1492196446.1657.1.camel@intel.com \
--to=vishal.l.verma@intel.com \
--cc=andy.rudoff@intel.com \
--cc=linux-nvdimm@lists.01.org \
/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