Re: [PATCH v2 1/2] qemu: make attaching disk partition to VM illegal

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

 



On Wed, Oct 02, 2019 at 02:04:28PM +0200, Michal Privoznik wrote:
> On 10/2/19 1:11 PM, Daniel P. Berrangé wrote:
> > On Wed, Oct 02, 2019 at 10:45:28AM +0200, Michal Privoznik wrote:
> > > On 9/30/19 3:41 PM, Pavel Mores wrote:
> > > > The way in which the qemu driver generates aliases for disks involves
> > > > ignoring the partition number part of a target dev name.  This means that
> > > > all partitions of a block device and the device itself all end up with the
> > > > same alias.  If multiple such disks are specified in XML, the resulting
> > > > name clash makes qemu invocation fail.
> > > > 
> > > > Since attaching partitions to qemu VMs doesn't seem to make much sense
> > > > anyway, disallow partitions in target specifications altogether.
> > > > 
> > > > https://bugzilla.redhat.com/show_bug.cgi?id=1346265
> > > > 
> > > > Signed-off-by: Pavel Mores <pmores@xxxxxxxxxx>
> > > > ---
> > > >    src/qemu/qemu_domain.c                        | 15 +++++++++++
> > > >    .../disk-attaching-partition-nosupport.xml    | 27 +++++++++++++++++++
> > > >    tests/qemuxml2argvtest.c                      |  1 +
> > > >    3 files changed, 43 insertions(+)
> > > >    create mode 100644 tests/qemuxml2argvdata/disk-attaching-partition-nosupport.xml
> > > > 
> 
> > 
> > I think it is fine for freeze, so go ahead with your proposed fix.
> > 
> 
> Thanks, I've made the change and pushed these.
> 
> Congratulations Pavel on your first libvirt contribution!

Cheers, and apologies for the additional work you had with it. :-)

	pvl

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux