diff options
author | Alasdair G Kergon <agk@redhat.com> | 2015-09-22 19:04:12 +0100 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2015-09-22 19:04:12 +0100 |
commit | 214e2cddf639e4b5a610e34ac24dbe2fd4618fb6 (patch) | |
tree | ce58d96eb26a3c2da199ca3111489fe00f99c8f8 /lib/format_pool | |
parent | 0ce150280ed703aad27f8d5c37db02dfa63da382 (diff) | |
download | lvm2-214e2cddf639e4b5a610e34ac24dbe2fd4618fb6.tar.gz |
segtypes: Use SEG_TYPE_NAME_ string constants.
Diffstat (limited to 'lib/format_pool')
-rw-r--r-- | lib/format_pool/import_export.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/format_pool/import_export.c b/lib/format_pool/import_export.c index 1aeabe248..99155ce39 100644 --- a/lib/format_pool/import_export.c +++ b/lib/format_pool/import_export.c @@ -188,8 +188,7 @@ static int _add_stripe_seg(struct dm_pool *mem, area_len = (usp->devs[0].blocks) / POOL_PE_SIZE; - if (!(segtype = get_segtype_from_string(lv->vg->cmd, - "striped"))) + if (!(segtype = get_segtype_from_string(lv->vg->cmd, SEG_TYPE_NAME_STRIPED))) return_0; if (!(seg = alloc_lv_segment(segtype, lv, *le_cur, @@ -226,7 +225,7 @@ static int _add_linear_seg(struct dm_pool *mem, unsigned j; uint32_t area_len; - if (!(segtype = get_segtype_from_string(lv->vg->cmd, "striped"))) + if (!(segtype = get_segtype_from_string(lv->vg->cmd, SEG_TYPE_NAME_STRIPED))) return_0; for (j = 0; j < usp->num_devs; j++) { |