mirror of
git://sourceware.org/git/lvm2.git
synced 2025-02-27 01:57:55 +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
01da72eb3a
commit
69af4ab3ae
@ -789,9 +789,6 @@ static int _lvcreate_params(struct lvcreate_params *lp,
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!_read_activation_params(lp, cmd))
|
||||
return_0;
|
||||
|
||||
/*
|
||||
* Allocation parameters
|
||||
*/
|
||||
@ -993,6 +990,15 @@ int lvcreate(struct cmd_context *cmd, int argc, char **argv)
|
||||
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)) {
|
||||
r = ECMD_FAILED;
|
||||
goto_out;
|
||||
|
Loading…
x
Reference in New Issue
Block a user