Skip to contentSkip to conversation

master - lvchange: backup VG after changing profile

PATCH Peter Rajnoha 1 participant 1 message Jul 12, 2013

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=4d19fa9582a44a71a53647d6a7c6026955e805c7
Commit:        4d19fa9582a44a71a53647d6a7c6026955e805c7
Parent:        8e4a3dd9cb73e71df5f782f844da4cf461d76de6
Author:        Peter Rajnoha <[email protected]>
AuthorDate:    Thu Jul 11 12:25:10 2013 +0200
Committer:     Peter Rajnoha <[email protected]>
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(-)
tools/lvchange.c +2 -0
index f7ce7fd..f4b5d07 100644
@@ -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;
 }