[pve-devel] [PATCH] Pass what storage ID is being used to vzdump hook scripts
Mark Casey
markc at unifiedgroup.com
Tue Sep 10 05:57:13 CEST 2013
Hello,
This patch is in reference to:
http://forum.proxmox.com/threads/16005-Minor-feature-request-Add-a-var-to-ENV-for-vzdump-hook-scripts-to-use.
Not much git experience here, so I'm only *kinda* sure I didn't screw
anything up. :)
Thank you,
Mark
-------------- next part --------------
>From bebb5a2f8dcef976e685b98b25dff120d9f2b93e Mon Sep 17 00:00:00 2001
From: Local User <luser at proxdev.unifiedgroup.com>
Date: Mon, 9 Sep 2013 22:38:30 -0500
Subject: [PATCH] Pass what storage ID is being used to vzdump hook scripts
Signed-off-by: Local User <luser at proxdev.unifiedgroup.com>
---
PVE/VZDump.pm | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/PVE/VZDump.pm b/PVE/VZDump.pm
index e749938..0bef3fd 100644
--- a/PVE/VZDump.pm
+++ b/PVE/VZDump.pm
@@ -646,7 +646,7 @@ sub run_hook_script {
local %ENV;
- foreach my $ek (qw(vmtype dumpdir hostname tarfile logfile)) {
+ foreach my $ek (qw(vmtype dumpdir hostname tarfile logfile storeid)) {
$ENV{uc($ek)} = $task->{$ek} if $task->{$ek};
}
@@ -764,7 +764,7 @@ sub exec_backup_task {
die "unable to create log file '$tmplog'";
$task->{dumpdir} = $opts->{dumpdir};
-
+ $task->{storeid} = $opts->{storage};
$task->{tmplog} = $tmplog;
unlink $logfile;
--
1.5.4.3
More information about the pve-devel
mailing list