mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
Remove redundant validate_name in vgreduce.
This check is now done in vg_read_for_update, thanks to mornfall. Should be no functional change. Author: Dave Wysochanski <dwysocha@redhat.com>
This commit is contained in:
parent
e9344c9174
commit
fd443e0245
@ -502,12 +502,6 @@ int vgreduce(struct cmd_context *cmd, int argc, char **argv)
|
||||
argv++;
|
||||
argc--;
|
||||
|
||||
if (!validate_name(vg_name)) {
|
||||
log_error("Volume group name \"%s\" is invalid",
|
||||
vg_name);
|
||||
return ECMD_FAILED;
|
||||
}
|
||||
|
||||
log_verbose("Finding volume group \"%s\"", vg_name);
|
||||
|
||||
if (repairing) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user