mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 13:41:51 +00:00
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: Scott Benesh <scott.benesh@microchip.com> Reviewed-by: Scott Teel <scott.teel@microchip.com> Reviewed-by: Mike McGowan <mike.mcgowan@microchip.com> Signed-off-by: Kevin Barnett <kevin.barnett@microchip.com> Signed-off-by: Don Brace <don.brace@microchip.com> Link: https://lore.kernel.org/r/166793531357.322537.8639138137605612362.stgit@brunhilda Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
7c56850637
commit
cbe42ac156
@ -7255,7 +7255,7 @@ static ssize_t pqi_raid_level_show(struct device *dev,
|
||||
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);
|
||||
else
|
||||
raid_level = "N/A";
|
||||
|
Loading…
Reference in New Issue
Block a user