Re: [BUG] udev doesn't run blkid on cdroms with one session

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Sep 20, 2009 at 03:49, Maxim Levitsky <maximlevitsky@xxxxxxxxx> wrote:
> 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

In vol_id it was an optional parameter, and worked fine with an empty
option, at least when long options are used:
   { "offset", optional_argument, NULL, 'o' },

We could also make cdrom_id print the "0", that might be the simplest.

> 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=Joliet\x20Extension
> ID_FS_TYPE=iso9660
> ID_FS_USAGE=filesystem
>
> 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)

Maybe this is expected in the *_ENC version of the string, I'm not sure.

Kay
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux