summaryrefslogtreecommitdiff
path: root/Documentation/device-mapper
diff options
context:
space:
mode:
authorHeinz Mauelshagen <heinzm@redhat.com>2017-01-14 05:53:08 +0300
committerMike Snitzer <snitzer@redhat.com>2017-01-25 14:49:06 +0300
commit50c4feb9a3e3df9574d952a4ed2f009f8135e4c7 (patch)
treeed2c28382adcf71e3969f2f1ac256112e7e519c5 /Documentation/device-mapper
parentc63ede3b4211e1e2489eda6a2efb0eb6fa26483a (diff)
downloadlinux-50c4feb9a3e3df9574d952a4ed2f009f8135e4c7.tar.xz
dm raid: be prepared to accept arbitrary '- -' tuples
During raid set resize checks and setting up the recovery offset in case a raid set grows, calculated rd->md.dev_sectors is compared to rs->dev[0].rdev.sectors. Device 0 may not be defined in case userspace passes in '- -' for it (lvm2 doesn't do that so far), thus it's device sectors can't be taken authoritatively in this comparison and another valid device must be used to retrieve the device size. Use mddev->dev_sectors in checking for ongoing recovery for the same reason. Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'Documentation/device-mapper')
0 files changed, 0 insertions, 0 deletions