Question about enable polling.

Kay Sievers kay.sievers at vrfy.org
Mon Oct 4 07:31:15 PDT 2010


On Mon, Oct 4, 2010 at 16:14, Stef Bon <stef at bononline.nl> wrote:
>  On 10/04/2010 03:03 PM, David Zeuthen wrote:

> I see also a  difference in the way udev handles cdroms. cdroms inserted or
> ejected are reported as change, while an inserted usb stick is reported as
> adding a device (and removal: remove a device)

It's the same model for both. If you plug-in a USB cdrom device, you
might only get 'add'. 'Change' is reported for media changes when the
device stays around but media is removed or added. 'Change' is also
used for USB disks not only for optical drives, where the media can be
removed, like USB card readers.

> But still stays why not:
>
> udisks --poll-for-removeable-media
>
> in stead of
>
> udisks --poll-for-media /dev/sr0

That's a one-shot command, not a switch to enable something in the
daemon that keeps polling. It should act on a specific device only.

Kay


More information about the devkit-devel mailing list