diff options
author | Alasdair Kergon <agk@redhat.com> | 2006-04-12 21:23:04 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2006-04-12 21:23:04 +0000 |
commit | a5fe5a7cdda8a7392a8bdc7d4a7c4c68978f652e (patch) | |
tree | a3a9869d5c092c527d2b33e75ca21ab7193db1d4 /tools/vgrename.c | |
parent | e8db70239e62201b207dcf7ce597b3ac591f123f (diff) | |
download | lvm2-a5fe5a7cdda8a7392a8bdc7d4a7c4c68978f652e.tar.gz lvm2-a5fe5a7cdda8a7392a8bdc7d4a7c4c68978f652e.tar.xz lvm2-a5fe5a7cdda8a7392a8bdc7d4a7c4c68978f652e.zip |
Fix vgexport/vgimport to set/reset PV exported flag so pv_attr is correct.
Add vgid to struct physical_volume and pass with vg_name to some functions.
Diffstat (limited to 'tools/vgrename.c')
-rw-r--r-- | tools/vgrename.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/vgrename.c b/tools/vgrename.c index aff32d81..b06cd05d 100644 --- a/tools/vgrename.c +++ b/tools/vgrename.c @@ -69,7 +69,7 @@ int vgrename(struct cmd_context *cmd, int argc, char **argv) return ECMD_FAILED; } - if (!(vg_old = vg_read(cmd, vg_name_old, &consistent)) || !consistent) { + if (!(vg_old = vg_read(cmd, vg_name_old, NULL, &consistent)) || !consistent) { log_error("Volume group \"%s\" doesn't exist", vg_name_old); unlock_vg(cmd, vg_name_old); return ECMD_FAILED; @@ -104,7 +104,7 @@ int vgrename(struct cmd_context *cmd, int argc, char **argv) } consistent = 0; - if ((vg_new = vg_read(cmd, vg_name_new, &consistent))) { + if ((vg_new = vg_read(cmd, vg_name_new, NULL, &consistent))) { log_error("New volume group \"%s\" already exists", vg_name_new); goto error; |