mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-08 08:58:50 +03:00
thin: support errorwhenfull with thin creation
When thinpool and thinvolume are created at the same time, still support usage of --errorwhenfull.
This commit is contained in:
parent
a625812bec
commit
75b786c5ef
@ -951,7 +951,8 @@ static int _lvcreate_params(struct cmd_context *cmd,
|
||||
-1))
|
||||
return_0;
|
||||
|
||||
if (!seg_can_error_when_full(lp) && arg_is_set(cmd, errorwhenfull_ARG)) {
|
||||
if (!seg_can_error_when_full(lp) && !lp->create_pool &&
|
||||
arg_is_set(cmd, errorwhenfull_ARG)) {
|
||||
log_error("Segment type %s does not support --errorwhenfull.", lp->segtype->name);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user