sys/dev/disk/dm: Fix sanity checks for striped target [4/4]
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sat, 31 Oct 2015 09:07:54 +0000 (18:07 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sat, 31 Oct 2015 16:18:23 +0000 (01:18 +0900)
commit097afaf3a6c4a9db8f3f5332bb718b25bc9aaad0
treefdaf088f71b726fdc78b2874a73874b5f6234498
parent110d9b3aeace5e67e1400fdd749afbb06378d9a7
sys/dev/disk/dm: Fix sanity checks for striped target [4/4]

Add sanity checks on relation among
number of stripes, device size, and chunk size.

This is one of the requirements in Linux dm-striped, but
disable it for now as it may break systems that currently
use this target (which I doubt there is any because lvm2
and dm raid seem to be unusable on DragonFly).
sys/dev/disk/dm/targets/striped/dm_target_striped.c