]> sourceware.org Git - lvm2.git/commitdiff
tools: Also recognise segtype with thin and cache.
authorAlasdair G Kergon <agk@redhat.com>
Sat, 30 Jul 2016 03:12:58 +0000 (04:12 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Sat, 30 Jul 2016 03:12:58 +0000 (04:12 +0100)
(--type thin still needs this for lvcreate - more logic should be
shared between lvcreate and lvconvert)

lib/metadata/segtype.h

index 2fc7a123e1e59de8b3477c7f7e099ffc887031a2..bf7c5eb3e31e006837200fe6a134be8ae9b583d0 100644 (file)
@@ -133,6 +133,8 @@ struct dev_manager;
 
 #define segtype_supports_stripe_size(segtype)  \
        ((segtype_is_striped(segtype) || segtype_is_mirror(segtype) || \
+         segtype_is_cache(segtype) || segtype_is_cache_pool(segtype) || \
+         segtype_is_thin(segtype) || segtype_is_snapshot(segtype) || \
          (segtype_is_raid(segtype) && !segtype_is_raid1(segtype))) ? 1 : 0)
 
 #define seg_is_cache(seg)      segtype_is_cache((seg)->segtype)
This page took 0.039513 seconds and 5 git commands to generate.