[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]