All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takahiro Yasui <tyasui@redhat.com>
To: lvm-devel@redhat.com
Subject: [PATCH] remove old backup file after renaming vg
Date: Thu, 19 Mar 2009 11:52:21 -0400	[thread overview]
Message-ID: <49C26A35.105@redhat.com> (raw)

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



             reply	other threads:[~2009-03-19 15:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-19 15:52 Takahiro Yasui [this message]
2009-03-19 16:09 ` [PATCH] remove old backup file after renaming vg Alasdair G Kergon
2009-03-19 16:40   ` Takahiro Yasui

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49C26A35.105@redhat.com \
    --to=tyasui@redhat.com \
    --cc=lvm-devel@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.