Re: What is the right way to do auto-mounting with Nautilus 2.22?



On Tue, 2008-03-18 at 14:41 -0400, Joe Marcus Clarke wrote:
> > Surely FreeBSD must have something that enumerates the mounted file
> > systems? At least the kernel knows (on Linux this is in /proc/mounts and
> > the format is similar to /etc/mtab).
> 
> We do, but it's not a file.  It's an API call, getmntinfo().  Since you
> can't add a monitor to this, I thought polling would be the way to go.
> That is, on platforms without mtab, check the list of mounts every few
> seconds, and fire signals if the list changes.  The gio API already
> knows how to enumerate mounts on FreeBSD.  It just needs to do this
> periodically to look for changes.

Yeah, sounds good to me. Not that polling is good or anything but if
it's all you have it's what you gotta do.

      David




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