mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
vgconvert: require lvmetad to not be used
lvmetad does not work with lvm1/format1 metadata, and vgconvert -M converts to or from lvm1 metadata, so disallow vgconvert -M when lvmetad is used.
This commit is contained in:
parent
5dbcbbea58
commit
321e19d9cc
@ -214,6 +214,11 @@ int vgconvert(struct cmd_context *cmd, int argc, char **argv)
|
||||
return EINVALID_CMD_LINE;
|
||||
}
|
||||
|
||||
if (arg_is_set(cmd, metadatatype_ARG) && lvmetad_used()) {
|
||||
log_error("lvmetad must be disabled to change metadata types.");
|
||||
return EINVALID_CMD_LINE;
|
||||
}
|
||||
|
||||
if (arg_int_value(cmd, labelsector_ARG, 0) >= LABEL_SCAN_SECTORS) {
|
||||
log_error("labelsector must be less than %lu",
|
||||
LABEL_SCAN_SECTORS);
|
||||
|
Loading…
Reference in New Issue
Block a user