Linux RAID subsystem development
 help / color / mirror / Atom feed
From: Jes Sorensen <jes.sorensen@gmail.com>
To: Tomasz Majchrzak <tomasz.majchrzak@intel.com>,
	linux-raid@vger.kernel.org
Subject: Re: [PATCH v2] Get failed disk count from array state
Date: Mon, 5 Jun 2017 11:12:07 -0400	[thread overview]
Message-ID: <916b7750-adb1-3382-5f58-336616dbe857@gmail.com> (raw)
In-Reply-To: <1496227617-25207-1-git-send-email-tomasz.majchrzak@intel.com>

On 05/31/2017 06:46 AM, Tomasz Majchrzak wrote:
> Recent commit has changed the way failed disks are counted. It breaks
> recovery for external metadata arrays as failed disks are not part of
> the array and have no corresponding entries is sysfs (they are only
> reported for containers) so degraded arrays show no failed disks.
> 
> Recent commit overwrites GET_DEGRADED result prior to GET_STATE and it
> is not set again if GET_STATE has not been requested. As GET_STATE
> provides the same information as GET_DEGRADED, the latter is not needed
> anymore. Remove GET_DEGRADED option and replace it with GET_STATE
> option.
> 
> Don't count number of failed disks looking at sysfs entries but
> calculate it at the end. Do it only for arrays as containers report
> no disks, just spares.
> 
> Signed-off-by: Tomasz Majchrzak <tomasz.majchrzak@intel.com>
> ---
>   Incremental.c | 14 ++++----------
>   Monitor.c     |  4 ++--
>   managemon.c   |  4 ++--
>   mdadm.h       |  1 -
>   raid6check.c  |  2 +-
>   sysfs.c       | 18 ++++++++----------
>   6 files changed, 17 insertions(+), 26 deletions(-)
> 
> v2:
>    adapted to apply to latest upstream version

Applied!

Thanks,
Jes


      reply	other threads:[~2017-06-05 15:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-15 12:17 [PATCH] Get failed disk count from array state Tomasz Majchrzak
2017-05-19 19:43 ` Jes Sorensen
2017-05-31 10:46   ` [PATCH v2] " Tomasz Majchrzak
2017-06-05 15:12     ` Jes Sorensen [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=916b7750-adb1-3382-5f58-336616dbe857@gmail.com \
    --to=jes.sorensen@gmail.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=tomasz.majchrzak@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox