]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Assemble.c
FIX: Count correctly added devices
authorAdam Kwolek <adam.kwolek@intel.com>
Mon, 18 Apr 2011 00:31:43 +0000 (10:31 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 18 Apr 2011 00:31:43 +0000 (10:31 +1000)
commit7af0334155f43fc80da92cb35a37cd000ad2c56c
treed319d4d6fd57ac93cca3fa36a02161a1c10e9e56
parenta5062b1cb6ad51ebaa1f8b60e1cfe5408dbf17d7
FIX: Count correctly added devices

When array is in reshape state raid_disks field contains final disks number.
To know how many disks were added, disk.raid_disk index has to be compared
against old disk number computed using delta_disks.

Signed-off-by: Adam Kwolek <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Assemble.c