Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:GA
xen.3265
xend-pvscsi-recognize-also-SCSI-CDROM-devices.p...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File xend-pvscsi-recognize-also-SCSI-CDROM-devices.patch of Package xen.3265
From: Olaf Hering <olaf@aepfle.de> Date: Tue, 11 Feb 2014 15:21:01 +0100 Subject: xend/pvscsi: recognize also SCSI CDROM devices Attaching a CDROM device with 'xm scsi-attach domU /dev/sr0 0:0:0:0' fails because for some reason the sr driver was not handled at all in the match list. With the change the above command succeeds and the device is attached. Signed-off-by: Olaf Hering <olaf@aepfle.de> --- tools/python/xen/util/vscsi_util.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/python/xen/util/vscsi_util.py b/tools/python/xen/util/vscsi_util.py --- a/tools/python/xen/util/vscsi_util.py +++ b/tools/python/xen/util/vscsi_util.py @@ -66,6 +66,9 @@ def _vscsi_get_hctl_by(phyname, scsi_devices): if re.match('/dev/sd[a-z]+([1-9]|1[0-5])?$', phyname): # sd driver name = re.sub('(^/dev/)|([1-9]|1[0-5])?$', '', phyname) + elif re.match('/dev/sr[0-9]+$', phyname): + # sr driver + name = re.sub('^/dev/', '', phyname) elif re.match('/dev/sg[0-9]+$', phyname): # sg driver name = re.sub('^/dev/', '', phyname)
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