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

[Xen-devel] [OSSTEST PATCH 38/62] ts-guests-nbd-mirror: Use target_getfile_root_stash



That removes the rather ad-hoc open-coding.

Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
 ts-guests-nbd-mirror | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/ts-guests-nbd-mirror b/ts-guests-nbd-mirror
index 06903aaa..0365c47b 100755
--- a/ts-guests-nbd-mirror
+++ b/ts-guests-nbd-mirror
@@ -154,10 +154,7 @@ sub shuffleconfigs () {
        my $gn= $gns[$i];
        my $gho= $ghos[$i];
        my $cfgpath= $r{ "$gho->{Guest}_cfgpath" };
-       my $file= $cfgpath;
-       $file=~ s,/,-,g;
-       $file= "$stash/".hostnamepath($cho)."--$file";
-       target_getfile_root($sho, 60, $cfgpath, $file);
+       my $file = target_getfile_root_stash($sho, 60, $cfgpath);
        target_putfile_root($cho, 60, $file, $cfgpath);
     }
 }
-- 
2.11.0


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.