From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Jackson Subject: [OSSTEST PATCH 10/12] ts-guests-nbd-mirror: set "oldstyle=true" Date: Tue, 11 Feb 2014 15:25:52 +0000 Message-ID: <1392132354-7594-11-git-send-email-ian.jackson@eu.citrix.com> References: <1392132354-7594-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WDFDv-0007zx-Sx for xen-devel@lists.xenproject.org; Tue, 11 Feb 2014 15:26:12 +0000 In-Reply-To: <1392132354-7594-1-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org Newer NBDs (wheezy's and later) need a config option to say we're using the old-style port-based addressing. At some point we will probably switch to using the new-style addressing, but not yet. Signed-off-by: Ian Jackson --- ts-guests-nbd-mirror | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ts-guests-nbd-mirror b/ts-guests-nbd-mirror index af200f4..ee7ff60 100755 --- a/ts-guests-nbd-mirror +++ b/ts-guests-nbd-mirror @@ -59,6 +59,9 @@ sub configserver () { [generic] user = root END + $scfg .= <{Suite} =~ m/sarge|lenny|squeeze/; + oldstyle = true +END foreach my $v (@vols) { $v->{Port}= unique_incrementing_runvar("${srvhost}_nextport",4000); $v->{Path}= "/dev/$v->{Gho}{Vg}/$v->{Lv}"; -- 1.7.10.4