1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-06 08:26:52 +03:00
systemd/extras
Kay Sievers d3c8231e73 cdrom_id: suppress ID_CDROM_MEDIA_STATE=blank for plain non-writable CDROM media
Some broken fake cdrom drives return ID_CDROM_MEDIA_STATE=blank.

  $ /lib/udev/cdrom_id -d /dev/sr1
  main: probing: '/dev/sr1'
  cd_inquiry: INQUIRY: [Nokia   ][S60             ][1.0 ]
  cd_profiles: GET CONFIGURATION: number of profiles 76
  cd_profiles: current profile 0x08
  cd_media_toc: READ TOC: len: 12
  cd_media_toc: last track 1 starts at block 0
  cd_media_info: disk type 00
  ID_CDROM=1
  ID_CDROM_MRW=1
  ID_CDROM_MRW_W=1
  ID_CDROM_MEDIA=1
  ID_CDROM_MEDIA_CD=1
  ID_CDROM_MEDIA_STATE=blank

Others work fine, but ID_CDROM_MEDIA_STATE is not needed for non-writable CDROM media:

  $ /lib/udev/cdrom_id -d /dev/sr1
  main: probing: '/dev/sr1'
  cd_inquiry: INQUIRY: [SanDisk ][U3 Cruzer Micro ][8.02]
  cd_profiles: GET CONFIGURATION: number of profiles 72
  cd_profiles: current profile 0x08
  cd_media_toc: READ TOC: len: 20
  cd_media_toc: track=1 info=0x4(data) start_block=0
  cd_media_toc: last track 1 starts at block 0
  cd_media_info: disk type 00
  ID_CDROM=1
  ID_CDROM_MRW=1
  ID_CDROM_MRW_W=1
  ID_CDROM_MEDIA=1
  ID_CDROM_MEDIA_CD=1
  ID_CDROM_MEDIA_STATE=complete
  ID_CDROM_MEDIA_SESSION_COUNT=1
  ID_CDROM_MEDIA_TRACK_COUNT=1
  ID_CDROM_MEDIA_TRACK_COUNT_DATA=1
2009-05-26 00:50:45 +02:00
..
ata_id *_id: add model/vendor enc strings 2009-02-17 21:45:43 +01:00
cdrom_id cdrom_id: suppress ID_CDROM_MEDIA_STATE=blank for plain non-writable CDROM media 2009-05-26 00:50:45 +02:00
collect make: do not delete autotools generated file with distclean 2008-12-06 04:03:08 +01:00
edd_id edd_id: use openat() 2009-05-20 18:10:26 +02:00
firmware rules: first simple step merging with Ubuntu rules 2008-12-19 16:49:56 +01:00
floppy create_floppy_devices: expand manpage 2009-03-16 23:10:15 +01:00
fstab_import use more efficient string copying 2009-05-20 17:57:52 +02:00
path_id path_id: support identification of Xen virtual block devices 2009-04-16 22:46:18 +02:00
rule_generator rule-generator: cd - skip by-path links if we create by-id links 2009-05-14 12:57:19 +02:00
scsi_id use more efficient string copying 2009-05-20 17:57:52 +02:00
usb_id use more efficient string copying 2009-05-20 17:57:52 +02:00
Makefile.am delete libvolume_id 2009-05-12 13:28:01 +02:00