1
0
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:
Zdenek Kabelac 2015-01-20 15:43:16 +01:00
parent a625812bec
commit 75b786c5ef

View File

@ -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;
}