Question about enable polling.

Stef Bon stef at bononline.nl
Mon Oct 4 08:30:04 PDT 2010


  On 10/04/2010 05:13 PM, Kay Sievers wrote:
> On Mon, Oct 4, 2010 at 17:05, Stef Bon<stef at bononline.nl>  wrote:
>>>> 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.
>> So the way it acts now is not it's intended, that is my whole point. But
>> that is already mentioned by David Zeuthen, about the abi not stable yet
>> right??
> I think it is the intended behavior. The stability-promise only says
> that it may still change in the future without warning, not that it is
> being worked on to be something different.
To be sure, the command

udisk --poll-for-media /dev/sr0

results in:
: > ps aux | grep udisks | grep -v grep
root      2792  0.0  0.0  14408  3060 ?        SNl  12:09   0:00 
/usr/lib/udisks/udisks-daemon
root      2793  0.0  0.0   5884   668 ?        SN   12:09   0:03 
udisks-daemon: polling /dev/sr0 /dev/sdc /dev/sdd /dev/sr1

So while giving the command to poll the /dev/sr0 device only, it starts 
polling all the removable devices. That's what I mean with not intended 
behaviour. You mention that the intended behaviour is only polling the 
device on the command line right?

Stef




More information about the devkit-devel mailing list