[lvm-devel] [PATCH] remove old backup file after renaming vg

Takahiro Yasui tyasui at redhat.com
Thu Mar 19 15:52:21 UTC 2009


Hi,

This patch removes an old backup file after renaming vg
by the vgrename command.

Regards,
---
Takahiro Yasui
Hitachi Computer Products (America), Inc.



Signed-off-by: Takahiro Yasui <tyasui at redhat.com>
---
 tools/vgrename.c |    1 +
 1 file changed, 1 insertion(+)

Index: LVM2.02.46-20090316/tools/vgrename.c
===================================================================
--- LVM2.02.46-20090316.orig/tools/vgrename.c
+++ LVM2.02.46-20090316/tools/vgrename.c
@@ -149,6 +149,7 @@ static int vg_rename_path(struct cmd_con
 /******* FIXME Rename any active LVs! *****/
 
 	backup(vg);
+	backup_remove(cmd, vg_name_old);
 
 	unlock_vg(cmd, vg_name_new);
 	unlock_vg(cmd, vg_name_old);




More information about the lvm-devel mailing list