Re: [Tracker] Prevent removed files from being removed from the db



On Mon, 2010-05-17 at 15:41 -0400, Nikolaus Rath wrote:
I already explained what we consider to be a removable device. Martyn
also replied to you that info.

I really don't mean to offend you, but it seems that I missed or
misunderstood that information. I gather that you use GIO and fall back
on HAL/devicekit, but I'm still not sure what devices will qualify as
removable.

To see how this is implemented see:

http://git.gnome.org/browse/tracker/tree/src/libtracker-miner/tracker-storage.c

Generally these rules have to be passed:

  g_volume_should_automount (volume) &&
  g_volume_can_mount (volume)

  mount_point != NULL

See the volume_add() function for more details.

For optical media, see:

http://git.gnome.org/browse/tracker/tree/src/libtracker-miner/tracker-storage.c#n352

We have an option to check if we should descend into mounted directories
when crawling, but right now it isn't effective. We could add some code
to support this but it gets interesting and with the potential
efficiency hit and no one begging for the feature to be working, we
wonder of its usefulness.

If you have ideas or solutions to propose here, we would be interested
to hear them.

-- 
Regards,
Martyn




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