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 586857 Details for
Bug 825247
storage test may schedule tests for multiple disks on the same controller
[?]
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]
storage patch fixing hal controller detection for disks
storage.patch (text/plain), 1.89 KB, created by
Greg Nichols
on 2012-05-25 12:56:45 UTC
(
hide
)
Description:
storage patch fixing hal controller detection for disks
Filename:
MIME Type:
Creator:
Greg Nichols
Created:
2012-05-25 12:56:45 UTC
Size:
1.89 KB
patch
obsolete
>Index: storage.py >=================================================================== >--- storage.py (revision 1176) >+++ storage.py (working copy) >@@ -45,6 +45,7 @@ > > def plan(self, devices): > tests = dict() >+ self.controllers = '' > for device in devices: > disk = self.planUDisks(device, devices) > >@@ -67,7 +68,6 @@ > if isinstance(device, UDisksDrive): > if device.getProperty("DeviceIsPartitionTable"): > disk = device.getProperty("DeviceFile") >- print "found device file " + disk > # get rid of the "/dev/" > if '/'in disk: > disk = disk.split('/')[-1] >@@ -75,7 +75,6 @@ > > def planHAL(self, device, devices): > disk = None >- controllers = '' > if 'storage' in device.getProperty("info.capabilities") and device.getProperty("storage.drive_type") in ["disk", "sd_mmc"]: > disk = device.getProperty("block.device") > # bug#437866 , plan by each controller, block device's parent is the HD, HD's parent is the controller, so need to track back twice >@@ -88,12 +87,12 @@ > # then the contoller's ID is found > controllerId = deviceItem.getProperty("info.parent") > continue >- if controllerId in controllers: >+ if controllerId in self.controllers: > print "the controller %s is already in testplan, will skip the block device %s" % (controllerId, disk) > disk = '' > else: > # add the controller to the plan and record it >- controllers = controllers + ', ' + controllerId >+ self.controllers = self.controllers + ', ' + controllerId > # chop off /dev/ (5 characters) > if disk and len(disk) > 5: > disk = disk[5:]
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 825247
: 586857