Commit cbe42ac1 authored by Kevin Barnett's avatar Kevin Barnett Committed by Martin K. Petersen

scsi: smartpqi: Change sysfs raid_level attribute to N/A for controllers

Change the sysfs raid_level attribute from "RAID-0" to N/A.
Reviewed-by: default avatarScott Benesh <scott.benesh@microchip.com>
Reviewed-by: default avatarScott Teel <scott.teel@microchip.com>
Reviewed-by: default avatarMike McGowan <mike.mcgowan@microchip.com>
Signed-off-by: default avatarKevin Barnett <kevin.barnett@microchip.com>
Signed-off-by: default avatarDon Brace <don.brace@microchip.com>
Link: https://lore.kernel.org/r/166793531357.322537.8639138137605612362.stgit@brunhildaSigned-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 7c568506
...@@ -7255,7 +7255,7 @@ static ssize_t pqi_raid_level_show(struct device *dev, ...@@ -7255,7 +7255,7 @@ static ssize_t pqi_raid_level_show(struct device *dev,
return -ENODEV; return -ENODEV;
} }
if (pqi_is_logical_device(device)) if (pqi_is_logical_device(device) && device->devtype == TYPE_DISK)
raid_level = pqi_raid_level_to_string(device->raid_level); raid_level = pqi_raid_level_to_string(device->raid_level);
else else
raid_level = "N/A"; raid_level = "N/A";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment