From: Sebastian Riemer <sebastian.riemer@profitbricks.com>
To: Linux RAID <linux-raid@vger.kernel.org>
Subject: [Q] md: Why mddev->pers->status() '[2/1]' - degraded in second value?
Date: Fri, 07 Dec 2012 18:51:42 +0100 [thread overview]
Message-ID: <50C22CAE.1020505@profitbricks.com> (raw)
Hi all,
can somebody answer the question why in /proc/mdstat the degraded count
is used in the second parameter and not in the first of the string "[2/1]"?
Here is the related code:
from raid1.c:
seq_printf(seq, " [%d/%d] [", conf->raid_disks,
conf->raid_disks - mddev->degraded);
In the other personalities it is the same. For me it would make more
sense to see that I've got "[1/2]" (one of two) active.
I couldn't find the explanation in "Documentation/md.txt".
Cheers,
Sebastian
--
Sebastian Riemer
Linux Kernel Developer - Storage
We are looking for (SENIOR) LINUX KERNEL DEVELOPERS!
ProfitBricks GmbH • Greifswalder Str. 207 • 10405 Berlin, Germany
www.profitbricks.com • sebastian.riemer@profitbricks.com
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" 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:[~2012-12-07 17:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=50C22CAE.1020505@profitbricks.com \
--to=sebastian.riemer@profitbricks.com \
--cc=linux-raid@vger.kernel.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 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.