Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2:PowerPC
xen
25041-tapdisk2-create-init-name.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 25041-tapdisk2-create-init-name.patch of Package xen
# 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, ¶ms); if (err && errno != EEXIST) {
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor