mdadm ignores size parameter during creation if is less than chunk size
Bug #1897232 reported by
Mariusz Tkaczyk
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mdadm |
New
|
Undecided
|
Unassigned |
Bug Description
There was a bug in mdadm which causes rounding size to max if passed size was less than chunk.
Steps:
1. Create RAID container.
# mdadm --create /dev/md/imsm0 --metadata=imsm --raid-devices=2 /dev/sdi /dev/sdj --run
2. Create RAID volume with volume size less than chunk size.
# mdadm --create /dev/md/vol --level=0 --chunk=128 --size=127 --raid-devices=2 /dev/md/imsm0 --run
Expected result:
RAID volume was not created, error is thrown.
Actual result:
Size is rounded to max and full available space is used.
Fixed in upstream by:
https:/
To post a comment you must log in.