Re: Question about enable polling.

2010-10-06 Thread David Zeuthen
Hi, On Tue, Oct 5, 2010 at 2:25 PM, Stef Bon wrote: >  On 10/05/2010 04:09 PM, David Zeuthen wrote: >> >> Hi, >> >> Via /etc/fstab. > > Can you give an example? /dev/disk/by-label/MyUsbStick /mnt/MyUsbStick ext4 defaults,user 0 0 >> Sure. Note that GNOME and other desktops already supports this

Re: Question about enable polling.

2010-10-05 Thread Stef Bon
On 10/05/2010 04:09 PM, David Zeuthen wrote: Hi, Via /etc/fstab. Can you give an example? Sure. Note that GNOME and other desktops already supports this quite well with GVfs. I know, but that is for Gnome platforms only. Mine is for any environment, even the normal console. And I think t

Re: Question about enable polling.

2010-10-05 Thread David Zeuthen
Hi, On Tue, Oct 5, 2010 at 7:48 AM, Stef Bon wrote: > Yes, that's it. Ive tried it here myself, and indeed this behaviour. > > The polling is started also with a command like udisks --enumerate > > Thus the way to enable polling for all removable devices is to start at boot > time: > > udisks --e

Re: Question about enable polling.

2010-10-05 Thread Stef Bon
On 10/04/2010 06:41 PM, Kay Sievers wrote: On Mon, Oct 4, 2010 at 17:42, Kay Sievers wrote: On Mon, Oct 4, 2010 at 17:30, Stef Bon wrote: 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 ?

Re: Question about enable polling.

2010-10-04 Thread Kay Sievers
On Mon, Oct 4, 2010 at 17:42, Kay Sievers wrote: > On Mon, Oct 4, 2010 at 17:30, Stef Bon wrote: > >> 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 >> /

Re: Question about enable polling.

2010-10-04 Thread Kay Sievers
On Mon, Oct 4, 2010 at 17:30, Stef Bon wrote: > 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   588

Re: Question about enable polling.

2010-10-04 Thread Stef Bon
On 10/04/2010 05:13 PM, Kay Sievers wrote: On Mon, Oct 4, 2010 at 17:05, Stef Bon 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

Re: Question about enable polling.

2010-10-04 Thread Kay Sievers
On Mon, Oct 4, 2010 at 17:05, Stef Bon 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

Re: Question about enable polling.

2010-10-04 Thread Stef Bon
On 10/04/2010 04:31 PM, Kay Sievers wrote: On Mon, Oct 4, 2010 at 16:14, Stef Bon 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

Re: Question about enable polling.

2010-10-04 Thread Kay Sievers
On Mon, Oct 4, 2010 at 16:14, Stef Bon 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)

Re: Question about enable polling.

2010-10-04 Thread David Zeuthen
Hi, For the record, the docs are located here http://hal.freedesktop.org/docs/udisks/ Also note that the ABI of the udisks(1) binary isn't considered stable. The D-Bus ABI has some stability gurantees, see the README file. On Sat, Oct 2, 2010 at 10:43 AM, Stef Bon wrote: > I'm using the udisk

Re: Question about enable polling.

2010-10-04 Thread Stef Bon
On 10/04/2010 03:03 PM, David Zeuthen wrote: Hi, For the record, the docs are located here http://hal.freedesktop.org/docs/udisks/ Also note that the ABI of the udisks(1) binary isn't considered stable. The D-Bus ABI has some stability gurantees, see the README file. Thanks a lot for your

Question about enable polling.

2010-10-02 Thread Stef Bon
Hello, I'm using udisks now, and very happy with it. Good work!! (I'm using a LinuxFRomSCratch system, and building everything from source) My first impression is that it's far more flexible. I'm using the udisks to activate the polling like: udisks --poll-for-media /dev/sr0 Now I see that