Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 311470 Details for
Bug 444413
Cannot use attach disk if subdriver option is wrong in blktap
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Backport of upstream changeset to RHEL5
xen-blktap-type-check.patch (text/plain), 1.27 KB, created by
Daniel Berrangé
on 2008-07-10 12:06:52 UTC
(
hide
)
Description:
Backport of upstream changeset to RHEL5
Filename:
MIME Type:
Creator:
Daniel Berrangé
Created:
2008-07-10 12:06:52 UTC
Size:
1.27 KB
patch
obsolete
>diff -rup xen-3.1.0-src.orig/tools/python/xen/xend/server/BlktapController.py xen-3.1.0-src.new/tools/python/xen/xend/server/BlktapController.py >--- xen-3.1.0-src.orig/tools/python/xen/xend/server/BlktapController.py 2006-10-15 08:22:03.000000000 -0400 >+++ xen-3.1.0-src.new/tools/python/xen/xend/server/BlktapController.py 2008-07-10 07:56:09.000000000 -0400 >@@ -2,7 +2,15 @@ > > > from xen.xend.server.blkif import BlkifController >+from xen.xend.XendError import XendError > >+blktap_disk_types = [ >+ 'aio', >+ 'sync', >+ 'vmdk', >+ 'ram', >+ 'qcow' >+ ] > > class BlktapController(BlkifController): > def __init__(self, vm): >@@ -12,3 +20,16 @@ class BlktapController(BlkifController): > """@see DevController#frontendRoot""" > > return "%s/device/vbd" % self.vm.getDomainPath() >+ >+ def createDevice(self, config): >+ """Trigger the creation of a device with the given configuration. >+ >+ @return The ID for the newly created device. >+ """ >+ (devid, back, front) = self.getDeviceDetails(config) >+ >+ if back['params'].split(':')[0] not in blktap_disk_types: >+ raise XendError("tap:%s not a valid disk type" % >+ back['params'].split(':')[0]) >+ >+ return DevController.createDevice(config)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 444413
:
311470
|
311471