xen/25041-tapdisk2-create-init-name.patch
Charles Arnold 57123e612c - bnc#753165 - xen/scripts/network-bridge wont create bridge
bridge-bonding.diff

- Upstream patches from Jan
  24950-gnttab-copy-mapped.patch
  24970-x86-cpuidle-deny-port-access.patch
  24996-x86-cpuidle-array-overrun.patch
  25041-tapdisk2-create-init-name.patch

OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=176
2012-03-21 20:38:02 +00:00

24 lines
843 B
Diff

# HG changeset patch
# User Jan Beulich <JBeulich@suse.com>
# Date 1331725244 0
# Node ID 20c8a7db63d160e95fcf5c8e2f9d31923d336316
# Parent e8660d8cf4be332e53cf6e2765f21804e3bfe28e
tapdisk2: initialize 'name' parameter of BLKTAP2_IOCTL_CREATE_DEVICE
This keeps the kernel driver from printing garbage.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
--- 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) {