[Q] md: Why mddev->pers->status() '[2/1]' - degraded in second value?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx

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


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux