git: sys/dev/disk/dm: Fix sanity checks for striped target [3/4]

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Sat Oct 31 09:52:25 PDT 2015


commit 110d9b3aeace5e67e1400fdd749afbb06378d9a7
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Sat Oct 31 00:16:12 2015 +0900

    sys/dev/disk/dm: Fix sanity checks for striped target [3/4]
    
    0 stripe is apparently invalid, but it's currently allowed
    and generates unusable device.
    
      # kldload dm
      # dmsetup create stripe1 --table '0 1000 striped 0 10 /dev/da3 0 /dev/da4 0'
      # dmsetup ls --tree
      stripe1 (255:504430599)
      # dmsetup deps /dev/mapper/stripe1
      0 dependencies  :
      # dmsetup status /dev/mapper/stripe1
    
      # dmsetup table /dev/mapper/stripe1
    
      #

Summary of changes:
 sys/dev/disk/dm/targets/striped/dm_target_striped.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/110d9b3aeace5e67e1400fdd749afbb06378d9a7


-- 
DragonFly BSD source repository



More information about the Commits mailing list