[lvm-devel] master - lvchange: backup VG after changing profile

Peter Rajnoha prajnoha at fedoraproject.org
Fri Jul 12 11:17:57 UTC 2013


Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=4d19fa9582a44a71a53647d6a7c6026955e805c7
Commit:        4d19fa9582a44a71a53647d6a7c6026955e805c7
Parent:        8e4a3dd9cb73e71df5f782f844da4cf461d76de6
Author:        Peter Rajnoha <prajnoha at redhat.com>
AuthorDate:    Thu Jul 11 12:25:10 2013 +0200
Committer:     Peter Rajnoha <prajnoha at redhat.com>
CommitterDate: Thu Jul 11 12:25:10 2013 +0200

lvchange: backup VG after changing profile

---
 tools/lvchange.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/tools/lvchange.c b/tools/lvchange.c
index f7ce7fd..f4b5d07 100644
--- a/tools/lvchange.c
+++ b/tools/lvchange.c
@@ -882,6 +882,8 @@ static int lvchange_profile(struct logical_volume *lv)
 	if (!vg_write(lv->vg) || !vg_commit(lv->vg))
 		return_0;
 
+	backup(lv->vg);
+
 	return 1;
 }
 




More information about the lvm-devel mailing list