[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [OSSTEST PATCH 10/22] Toolstack::xl: Provide block_attach method
It is possible that this may work some of the time with xm, so I have taken no measures to prevent it running then. Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> Signed-off-by: Robert Hu <robert.hu@xxxxxxxxx> Tested-by: Robert Hu <robert.hu@xxxxxxxxx> ---- v14: New patch v15: Fix missing $ho assignment in block-attach method --- Osstest/Toolstack/xl.pm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Osstest/Toolstack/xl.pm b/Osstest/Toolstack/xl.pm index 0f8abed..d956bcd 100644 --- a/Osstest/Toolstack/xl.pm +++ b/Osstest/Toolstack/xl.pm @@ -109,4 +109,13 @@ sub restore ($$$$) { ." $f", $timeout); } +sub block_attach ($$$$) { + my ($self,$gho,$xldiskspec) = @_; + die "quotes in $xldiskspec ?" if $xldiskspec =~ m/'/; + my $ho = $self->{Host}; + my $gn = $gho->{Name}; + my $cmd = $self->{_VerboseCommand}." block-attach $gn '$xldiskspec'"; + target_cmd_root($ho, $cmd, 100); +} + 1; -- 1.7.10.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |