Adds major_version for Sandisk FusionIO

Fuel agent will fail to recognize FusionIO flash storage devices as valid block storage. Added "251", the device major number, to the whitelist of valid block storage devices.

Change-Id: Iee58ae431c0e0ec017f5a7ca9a4acc2fa7678337
Signed-off-by: Will Kline <will@wolfdenassociates.com>
This commit is contained in:
Will Kline 2016-04-06 16:21:58 -04:00
parent 66eacd8ce1
commit 6d7236c41f
2 changed files with 2 additions and 2 deletions

View File

@ -328,7 +328,7 @@ supports-register-dump: yes
# look at kernel/Documentation/devices.txt
mock_breport.return_value = {}
valid_majors = [3, 8, 9, 65, 66, 67, 68, 69, 70, 71, 104, 105,
106, 107, 108, 109, 110, 111, 202, 252, 253, 259]
106, 107, 108, 109, 110, 111, 202, 251, 252, 253, 259]
for major in (set(range(1, 261)) - set(valid_majors)):
uspec = {
'MAJOR': str(major)

View File

@ -28,7 +28,7 @@ LOG = logging.getLogger(__name__)
# NOTE(agordeev): nvme devices also have a major number of 259
# (only in 2.6 kernels)
VALID_MAJORS = (3, 8, 9, 65, 66, 67, 68, 69, 70, 71, 104, 105, 106, 107, 108,
109, 110, 111, 202, 252, 253, 259)
109, 110, 111, 202, 251, 252, 253, 259)
# We are only interested in getting these
# properties from udevadm report