Linux Hotplug development
 help / color / mirror / Atom feed
* [BUG] udev doesn't run blkid on cdroms with one session
@ 2009-09-20  1:49 Maxim Levitsky
  2009-09-20  4:00 ` Kay Sievers
  2009-09-20 21:28 ` Maxim Levitsky
  0 siblings, 2 replies; 3+ messages in thread
From: Maxim Levitsky @ 2009-09-20  1:49 UTC (permalink / raw)
  To: linux-hotplug

A line in 60-persistent-storage.rules states:

KERNEL="sr*", ENV{ID_CDROM_MEDIA}="?*", IMPORT{program}="/sbin/blkid -o udev -p -u noraid -O $env{ID_CDROM_MEDIA_SESSION_LAST_OFFSET} $tempnode"

It seems to assume that ID_CDROM_MEDIA_SESSION_LAST_OFFSET is always
set, since otherwise blkid fails:

maxim@maxim-laptop:~$ /sbin/blkid -o udev -p -u noraid -O  /dev/sr0
The low-probe option requires a device
maxim@maxim-laptop:~$ /sbin/blkid -o udev -p -u noraid   /dev/sr0
ID_FS_LABELÍROM
ID_FS_LABEL_ENCÍROM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
ID_FS_VERSION=Joliet\x20Extension
ID_FS_TYPE=iso9660
ID_FS_USAGE=filesystem
maxim@maxim-laptop:~$ /sbin/blkid -o udev -p -u noraid -O 0  /dev/sr0
ID_FS_LABELÍROM
ID_FS_LABEL_ENCÍROM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
ID_FS_VERSION=Joliet\x20Extension
ID_FS_TYPE=iso9660
ID_FS_USAGE=filesystem
maxim@maxim-laptop:~$ 


Maybe this is a change in blkid
(btw, you notice obvious bug, the label is 'padded' with spaces, I will
report that to util-linux package maintainers)


Now, ether the rule has to be split in two, or cdrom_id changed.

Currently in cdrom_id:

	if (cd_media_session_last_offset > 0)
		printf("ID_CDROM_MEDIA_SESSION_LAST_OFFSET=%llu\n", cd_media_session_last_offset);



Now, it is impossible to use any disks, since without blkid environment,
devicekit doesn't recognize the cdrom at all.


Best regards,
Maxim Levitsky


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-09-20 21:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-20  1:49 [BUG] udev doesn't run blkid on cdroms with one session Maxim Levitsky
2009-09-20  4:00 ` Kay Sievers
2009-09-20 21:28 ` Maxim Levitsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox