mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
pool: improve message for data persistance
Inform a user that pools using either error or zero LVs are not able to keep any data persistant.
This commit is contained in:
parent
39457234db
commit
70c911b63f
@ -3278,9 +3278,13 @@ static int _lvconvert_to_pool(struct cmd_context *cmd,
|
|||||||
if (to_thin)
|
if (to_thin)
|
||||||
log_warn("WARNING: Converting %s to fully provisioned thin volume.",
|
log_warn("WARNING: Converting %s to fully provisioned thin volume.",
|
||||||
converted_names);
|
converted_names);
|
||||||
else if (zero_metadata)
|
else if (zero_metadata) {
|
||||||
log_warn("THIS WILL DESTROY CONTENT OF LOGICAL VOLUME (filesystem etc.)");
|
if (lv_is_error(lv) || lv_is_zero(lv))
|
||||||
else if (to_cachepool)
|
log_warn("WARNING: Volume of \"%s\" segtype cannot store ANY real data!",
|
||||||
|
first_seg(lv)->segtype->name);
|
||||||
|
else
|
||||||
|
log_warn("THIS WILL DESTROY CONTENT OF LOGICAL VOLUME (filesystem etc.)");
|
||||||
|
} else if (to_cachepool)
|
||||||
log_warn("WARNING: Using mismatched cache pool metadata MAY DESTROY YOUR DATA!");
|
log_warn("WARNING: Using mismatched cache pool metadata MAY DESTROY YOUR DATA!");
|
||||||
|
|
||||||
if (!arg_count(cmd, yes_ARG) &&
|
if (!arg_count(cmd, yes_ARG) &&
|
||||||
|
Loading…
Reference in New Issue
Block a user