mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Thin move _read_activation_params check
Since we finaly recognize thin creation only after _determine_snapshot_type() - move _read_activation_params() after it - so we can support lvcreate -an thin snapshot.
This commit is contained in:
parent
95308c5f58
commit
a538e369db
@ -789,9 +789,6 @@ static int _lvcreate_params(struct lvcreate_params *lp,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!_read_activation_params(lp, cmd))
|
|
||||||
return_0;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Allocation parameters
|
* Allocation parameters
|
||||||
*/
|
*/
|
||||||
@ -993,6 +990,15 @@ int lvcreate(struct cmd_context *cmd, int argc, char **argv)
|
|||||||
goto_out;
|
goto_out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Check activation parameters to support inactive thin snapshot creation
|
||||||
|
* FIXME: anything else needs to be moved past _determine_snapshot_type()?
|
||||||
|
*/
|
||||||
|
if (!_read_activation_params(&lp, cmd)) {
|
||||||
|
r = ECMD_FAILED;
|
||||||
|
goto_out;
|
||||||
|
}
|
||||||
|
|
||||||
if (!_update_extents_params(vg, &lp, &lcp)) {
|
if (!_update_extents_params(vg, &lp, &lcp)) {
|
||||||
r = ECMD_FAILED;
|
r = ECMD_FAILED;
|
||||||
goto_out;
|
goto_out;
|
||||||
|
Loading…
Reference in New Issue
Block a user