Thanks everyone for attaching their udev logs. They confirm that after
ejection, the track numbers are totally bogus:

  ID_CDROM_MEDIA_SESSION_NEXT=2894
  ID_CDROM_MEDIA_SESSION_COUNT=19194
  ID_CDROM_MEDIA_TRACK_COUNT=47323

and they are different for everyone.

This could be a kernel bug, but at least for an SRU I think it makes
_much_ more sense to modify the rule to short-circuit the vol_id if
"ID_CDROM_MEDIA_STATE=blank". In that case, it does not make sense to
probe the session and track counts.

Could folks please confirm that inserting this line right before line 58
in /lib/udev/rules.d/60-persistent-storage.rules (i. e. right after the
"# probe filesystem metadata of optical drives" comment) fixes the
problem:

KERNEL=="sr*", ENV{ID_CDROM_MEDIA_STATE}=="blank",
GOTO="persistent_storage_end"

Scott, WDYT?

-- 
CD-ROM tray closes automatically after eject 
https://bugs.launchpad.net/bugs/356631
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to