diff options
author | David Teigland <teigland@redhat.com> | 2018-04-27 16:22:46 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2018-04-30 16:55:02 -0500 |
commit | c1cd18f21ef233fa19e948cf130e97c005a349ad (patch) | |
tree | dd257ff46f7214469c0f4bbca2c32cedc64387a0 /tools/vgchange.c | |
parent | 029a76b4f830750cc312c062d77cdaa4d1a1bba9 (diff) | |
download | lvm2-c1cd18f21ef233fa19e948cf130e97c005a349ad.tar.gz |
Remove lvm1 and pool disk formats
There are likely more bits of code that can be removed,
e.g. lvm1/pool-specific bits of code that were identified
using FMT flags.
The vgconvert command can likely be reduced further.
The lvm1-specific config settings should probably have
some other fields set for proper deprecation.
Diffstat (limited to 'tools/vgchange.c')
-rw-r--r-- | tools/vgchange.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/tools/vgchange.c b/tools/vgchange.c index 61b78dfd0..e231c8668 100644 --- a/tools/vgchange.c +++ b/tools/vgchange.c @@ -534,13 +534,6 @@ static int _vgchange_system_id(struct cmd_context *cmd, struct volume_group *vg) const char *system_id; const char *system_id_arg_str = arg_str_value(cmd, systemid_ARG, NULL); - /* FIXME Merge with vg_set_system_id() */ - if (systemid_on_pvs(vg)) { - log_error("Metadata format %s does not support this type of system ID.", - vg->fid->fmt->name); - return 0; - } - if (!(system_id = system_id_from_string(cmd, system_id_arg_str))) { log_error("Unable to set system ID."); return 0; @@ -590,9 +583,6 @@ static int _vgchange_system_id(struct cmd_context *cmd, struct volume_group *vg) vg->system_id = system_id; - if (vg->lvm1_system_id) - *vg->lvm1_system_id = '\0'; - return 1; } |