mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
thin: fix attrs for unloaded driver
If the driver is not loaded, set all 'features' ON instead of all of them being OFF.
This commit is contained in:
parent
8c49aa79e7
commit
c7a7fd0a12
@ -157,6 +157,7 @@ static int _read_params(struct lvconvert_params *lp, struct cmd_context *cmd,
|
|||||||
int pagesize = lvm_getpagesize();
|
int pagesize = lvm_getpagesize();
|
||||||
|
|
||||||
memset(lp, 0, sizeof(*lp));
|
memset(lp, 0, sizeof(*lp));
|
||||||
|
lp->target_attr = ~0;
|
||||||
|
|
||||||
if ((arg_count(cmd, snapshot_ARG) || arg_count(cmd, merge_ARG)) &&
|
if ((arg_count(cmd, snapshot_ARG) || arg_count(cmd, merge_ARG)) &&
|
||||||
(arg_count(cmd, mirrorlog_ARG) || arg_count(cmd, mirrors_ARG) ||
|
(arg_count(cmd, mirrorlog_ARG) || arg_count(cmd, mirrors_ARG) ||
|
||||||
|
@ -659,6 +659,7 @@ static int _lvcreate_params(struct lvcreate_params *lp,
|
|||||||
memset(lp, 0, sizeof(*lp));
|
memset(lp, 0, sizeof(*lp));
|
||||||
memset(lcp, 0, sizeof(*lcp));
|
memset(lcp, 0, sizeof(*lcp));
|
||||||
dm_list_init(&lp->tags);
|
dm_list_init(&lp->tags);
|
||||||
|
lp->target_attr = ~0;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Check selected options are compatible and determine segtype
|
* Check selected options are compatible and determine segtype
|
||||||
|
Loading…
Reference in New Issue
Block a user