diff options
author | Alasdair Kergon <agk@redhat.com> | 2001-12-31 21:27:39 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2001-12-31 21:27:39 +0000 |
commit | cc21948339e24c2959b14e3f30f761ad1696b2fd (patch) | |
tree | f612bf057b291aff386394a0b09242056d2f5c83 /tools/pvchange.c | |
parent | 129c5d50a1e38ee018fcb34c32363101539fa952 (diff) | |
download | lvm2-cc21948339e24c2959b14e3f30f761ad1696b2fd.tar.gz lvm2-cc21948339e24c2959b14e3f30f761ad1696b2fd.tar.xz lvm2-cc21948339e24c2959b14e3f30f761ad1696b2fd.zip |
o Add autobackup support to tools (follows most vg_write calls).
o Skip autobackup when in test mode.
o Set test mode from config file.
o Create system/backup dirs if not present (unless LVM_SYSTEM_DIR holds "").
Diffstat (limited to 'tools/pvchange.c')
-rw-r--r-- | tools/pvchange.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/pvchange.c b/tools/pvchange.c index 487aec2d..2e403914 100644 --- a/tools/pvchange.c +++ b/tools/pvchange.c @@ -73,11 +73,6 @@ int pvchange(int argc, char **argv) } } -/******* FIXME Backup - if ((ret = do_autobackup(vg_name, vg))) - return ret; -*********/ - log_print("%d physical volume(s) changed / %d physical volume(s) " "not changed", done, total - done); @@ -144,6 +139,7 @@ int pvchange_single(struct physical_volume *pv) "volume group %s", pv_name, vg->name); return 0; } + autobackup(vg); } else { if (!(fid->ops->pv_write(fid, pv))) { log_error("Failed to store physical volume %s", |