mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cosmetic change - swapping one macro for another
When I see 'seg_is_mirrored', I expect the argument to be an lv_segment. In this case, it is lvcreate_params. Both structures, have a 'segtype' entry which the macro dereferences. However, it just seems easier to understand if we do 'segtype_is_mirrored' instead.
This commit is contained in:
parent
1ee8a40305
commit
09c4fd3f55
@ -346,7 +346,7 @@ static int _lvcreate_params(struct lvcreate_params *lp,
|
|||||||
lp->mirrors = 1;
|
lp->mirrors = 1;
|
||||||
|
|
||||||
/* Default to 2 mirrored areas if --type mirror */
|
/* Default to 2 mirrored areas if --type mirror */
|
||||||
if (seg_is_mirrored(lp))
|
if (segtype_is_mirrored(lp->segtype))
|
||||||
lp->mirrors = 2;
|
lp->mirrors = 2;
|
||||||
|
|
||||||
if (arg_count(cmd, mirrors_ARG)) {
|
if (arg_count(cmd, mirrors_ARG)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user