mirror of
git://sourceware.org/git/lvm2.git
synced 2024-10-27 01:55:10 +03:00
pvresize: Missing a message on error path.
This commit is contained in:
parent
33afe2ca76
commit
0e3c16af56
@ -648,14 +648,18 @@ int pv_resize_single(struct cmd_context *cmd,
|
||||
pv_name, display_size(cmd, (uint64_t) size));
|
||||
if (!yes && yes_no_prompt("%s: Requested size %s exceeds real size %s. Proceed? [y/n]: ",
|
||||
pv_name, display_size(cmd, (uint64_t) new_size),
|
||||
display_size(cmd, (uint64_t) size)) == 'n')
|
||||
display_size(cmd, (uint64_t) size)) == 'n') {
|
||||
log_error("Physical Volume %s not resized.", pv_name);
|
||||
goto_out;
|
||||
}
|
||||
|
||||
} else if (new_size < size)
|
||||
if (!yes && yes_no_prompt("%s: Requested size %s is less than real size %s. Proceed? [y/n]: ",
|
||||
pv_name, display_size(cmd, (uint64_t) new_size),
|
||||
display_size(cmd, (uint64_t) size)) == 'n')
|
||||
display_size(cmd, (uint64_t) size)) == 'n') {
|
||||
log_error("Physical Volume %s not resized.", pv_name);
|
||||
goto_out;
|
||||
}
|
||||
|
||||
if (new_size == size)
|
||||
log_verbose("%s: Size is already %s (%" PRIu64 " sectors).",
|
||||
|
Loading…
Reference in New Issue
Block a user