ide: add "optical" to sysfs "media" attribute
Add "optical" to sysfs "media" attribute as already in /proc Signed-off-by: Danny Kukawka <dkukawka@suse.de> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
This commit is contained in:
committed by
Bartlomiej Zolnierkiewicz
parent
76ca1af10e
commit
a7a832de9e
@@ -1962,6 +1962,8 @@ static char *media_string(ide_drive_t *drive)
|
|||||||
return "tape";
|
return "tape";
|
||||||
case ide_floppy:
|
case ide_floppy:
|
||||||
return "floppy";
|
return "floppy";
|
||||||
|
case ide_optical:
|
||||||
|
return "optical";
|
||||||
default:
|
default:
|
||||||
return "UNKNOWN";
|
return "UNKNOWN";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user