From: Matt Wilson <msw@linux.com>
To: George Dunlap <George.Dunlap@eu.citrix.com>
Cc: 李义 <yilikernel@gmail.com>,
"Ian Campbell" <ian.campbell@citrix.com>,
"Ian Jackson" <ian.jackson@eu.citrix.com>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>,
"Jan Beulich" <jbeulich@suse.com>, "Matt Wilson" <msw@amazon.com>
Subject: Re: Avoid said the /dev/xvd* is already defined after open a vhd file failed
Date: Tue, 25 Mar 2014 10:05:34 +0200 [thread overview]
Message-ID: <20140325080528.GA15697@u109add4315675089e695.ant.amazon.com> (raw)
In-Reply-To: <CAFLBxZae5DgS__fTK0JHJG5es0L-M1eBKzoVyYk_7jq4UUskgg@mail.gmail.com>
On Mon, Mar 24, 2014 at 11:52:56AM +0000, George Dunlap wrote:
> On Wed, Mar 19, 2014 at 3:12 PM, 李义 <yilikernel@gmail.com> wrote:
> > Hi Guys,
> >
> > can you do me a favor to check it. Thanks.
>
> CC'ing the xend maintainer...
Thanks, George.
> -George
>
> >
> > From 9f45c734af00a1af71f7cd69f0473474bcd739da Mon Sep 17 00:00:00 2001
> > From: Yi Li <peteryili@tencent.com>
> > Date: Wed, 19 Mar 2014 22:54:16 +0800
> > Subject: [PATCH] Avoid said the /dev/xvd* is already defined after
> > open a vhd file failed
> >
> > For example:
> > [root@dom0_134_103 ~]# xm block-attach 0
> > tap2:tapdisk:vhd:/root/liyi***.vhd /dev/xvdz w
> > Error: ('create', '-avhd:/root/liyi***.vhd') failed (512 )
> > Usage: xm block-attach <Domain> <BackDev> <FrontDev> <Mode> [BackDomain]
> > Create a new virtual block device.
> >
> > [root@dom0_134_103 ~]# xm block-attach 0
> > tap2:tapdisk:vhd:/root/liyi.vhd /dev/xvdz w
> > Error: The device "/dev/xvdz" is already defined
> > Usage: xm block-attach <Domain> <BackDev> <FrontDev> <Mode> [BackDomain]
> >
> > Create a new virtual block device.
> >
> > Signed-off-by: Yi Li <peteryili@tencent.com>
Acked-by: Matt Wilson <msw@amazon.com>
> > ---
> > tools/python/xen/xend/XendDomainInfo.py | 4 ++--
> > 1 files changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/tools/python/xen/xend/XendDomainInfo.py
> > b/tools/python/xen/xend/XendDomainInfo.py
> > index 8d4ff5c..2270ab1 100644
> > --- a/tools/python/xen/xend/XendDomainInfo.py
> > +++ b/tools/python/xen/xend/XendDomainInfo.py
> > @@ -65,7 +65,7 @@ from xen.xend.XendConstants import *
> > from xen.xend.XendAPIConstants import *
> > from xen.xend.XendCPUPool import XendCPUPool
> > from xen.xend.server.DevConstants import xenbusState
> > -from xen.xend.server.BlktapController import TapdiskController
> > +from xen.xend.server.BlktapController import TapdiskController,
> > TapdiskException
> >
> > from xen.xend.XendVMMetrics import XendVMMetrics
> >
> > @@ -861,7 +861,7 @@ class XendDomainInfo:
> > # blktap1
> > dev_type = self.getBlockDeviceClass(devid)
> > self._waitForDevice(dev_type, devid)
> > - except VmError, ex:
> > + except (VmError, TapdiskException), ex:
> > del self.info['devices'][dev_uuid]
> > if dev_type == 'pci':
> > for dev in dev_config_dict['devs']:
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2014-03-25 8:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-19 15:12 Avoid said the /dev/xvd* is already defined after open a vhd file failed 李义
2014-03-19 15:22 ` Fwd: " 李义
2014-03-24 11:52 ` George Dunlap
2014-03-25 8:05 ` Matt Wilson [this message]
2014-03-27 16:46 ` Ian Campbell
2014-03-28 6:02 ` 李义
2014-03-28 9:52 ` Ian Campbell
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=20140325080528.GA15697@u109add4315675089e695.ant.amazon.com \
--to=msw@linux.com \
--cc=George.Dunlap@eu.citrix.com \
--cc=ian.campbell@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=jbeulich@suse.com \
--cc=msw@amazon.com \
--cc=xen-devel@lists.xen.org \
--cc=yilikernel@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).