From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxim Levitsky Date: Sun, 20 Sep 2009 01:49:12 +0000 Subject: [BUG] udev doesn't run blkid on cdroms with one session Message-Id: <1253411352.3791.14.camel@maxim-laptop> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org A line in 60-persistent-storage.rules states: KERNEL=3D"sr*", ENV{ID_CDROM_MEDIA}=3D"?*", IMPORT{program}=3D"/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=CDROM ID_FS_LABEL_ENC=CDROM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20 ID_FS_VERSION=3DJoliet\x20Extension ID_FS_TYPE=3Diso9660 ID_FS_USAGE=3Dfilesystem maxim@maxim-laptop:~$ /sbin/blkid -o udev -p -u noraid -O 0 /dev/sr0 ID_FS_LABEL=CDROM ID_FS_LABEL_ENC=CDROM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20 ID_FS_VERSION=3DJoliet\x20Extension ID_FS_TYPE=3Diso9660 ID_FS_USAGE=3Dfilesystem maxim@maxim-laptop:~$=20 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=3D%llu\n", cd_media_session_la= st_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