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

[Xen-devel] [PATCH] tapdisk2: initialize 'name' parameter of BLKTAP2_IOCTL_CREATE_DEVICE


  • To: "xen-devel" <xen-devel@xxxxxxxxxxxxx>
  • From: "Jan Beulich" <JBeulich@xxxxxxxx>
  • Date: Fri, 09 Mar 2012 15:31:13 +0000
  • Delivery-date: Fri, 09 Mar 2012 15:30:51 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

This keeps the kernel driver from printing garbage.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>

--- a/tools/blktap2/drivers/tapdisk-control.c
+++ b/tools/blktap2/drivers/tapdisk-control.c
@@ -462,6 +462,7 @@ tapdisk_control_open_image(struct tapdis
 
        params.capacity = image.size;
        params.sector_size = image.secsize;
+       strncpy(params.name, vbd->name, BLKTAP2_MAX_MESSAGE_LEN);
 
        err = ioctl(vbd->ring.fd, BLKTAP2_IOCTL_CREATE_DEVICE, &params);
        if (err && errno != EEXIST) {



Attachment: tapdisk2-vbd-set-name.patch
Description: Text document

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

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