master - tools: mirror also supports stripesize
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=d1ff254c3cca0eed959095aa02ef9bfe36481065 Commit: d1ff254c3cca0eed959095aa02ef9bfe36481065 Parent: b3fbcd1ff7cae307b2796fe0df9ef32655f6f87a Author: Alasdair G Kergon <[email protected]> AuthorDate: Sat Jul 30 03:52:49 2016 +0100 Committer: Alasdair G Kergon <[email protected]> CommitterDate: Sat Jul 30 03:52:49 2016 +0100
tools: mirror also supports stripesize
--- lib/metadata/segtype.h | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
lib/metadata/segtype.h +2 -1
@@ -132,7 +132,8 @@ struct dev_manager;#define segtype_is_unknown (segtype) ((segtype)->flags & SEG_UNKNOWN ? 1 : 0)#define segtype_supports_stripe_size (segtype) \ - ((segtype_is_striped(segtype) || (segtype_is_raid(segtype) && !segtype_is_raid1(segtype))) ? 1 : 0) + ((segtype_is_striped(segtype) || segtype_is_mirror(segtype) || \ + (segtype_is_raid(segtype) && !segtype_is_raid1(segtype))) ? 1 : 0)#define seg_is_cache (seg) segtype_is_cache((seg)->segtype)#define seg_is_cache_pool (seg) segtype_is_cache_pool((seg)->segtype)