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

2010-05-17 Thread Nikolaus Rath
Hello, I want to store lots of (valuable) additional metadata about my files in the tracker database. However, I am a little bit concerned about the safety of this information. Apparently, tracker deletes everything that is associated with a given file if it can't find the file itself. Is there

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

2010-05-17 Thread Philip Van Hoof
On Mon, 2010-05-17 at 10:07 -0400, Nikolaus Rath wrote: > Hello, > > I want to store lots of (valuable) additional metadata about my files in > the tracker database. > > However, I am a little bit concerned about the safety of this > information. Apparently, tracker deletes everything that is ass

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

2010-05-17 Thread Martyn Russell
On Mon, 2010-05-17 at 10:07 -0400, Nikolaus Rath wrote: > Hello, Hello, > I want to store lots of (valuable) additional metadata about my files in > the tracker database. > > However, I am a little bit concerned about the safety of this > information. Apparently, tracker deletes everything that

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

2010-05-17 Thread Nikolaus Rath
Philip Van Hoof writes: > On Mon, 2010-05-17 at 10:07 -0400, Nikolaus Rath wrote: >> Hello, >> >> I want to store lots of (valuable) additional metadata about my files in >> the tracker database. >> >> However, I am a little bit concerned about the safety of this >> information. Apparently, trac

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

2010-05-17 Thread Philip Van Hoof
On Mon, 2010-05-17 at 13:23 -0400, Nikolaus Rath wrote: > Philip Van Hoof writes: > > On Mon, 2010-05-17 at 10:07 -0400, Nikolaus Rath wrote: > >> Hello, > >> > >> I want to store lots of (valuable) additional metadata about my files in > >> the tracker database. > >> > >> However, I am a little

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

2010-05-17 Thread Martyn Russell
On Mon, 2010-05-17 at 19:42 +0200, Philip Van Hoof wrote: > On Mon, 2010-05-17 at 13:23 -0400, Nikolaus Rath wrote: > > Philip Van Hoof writes: > > > On Mon, 2010-05-17 at 10:07 -0400, Nikolaus Rath wrote: > > >> Hello, > > >> > > >> I want to store lots of (valuable) additional metadata about my

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

2010-05-17 Thread Nikolaus Rath
Philip Van Hoof writes: >> How can Tracker (reliably) detect if a resource is on an external drive? >> I can't believe that this works for anything but the trivial case where >> /dev/sdX is directly mounted. But if the disk is e.g. LUKS encrypted, >> then there's already a device mapper in between

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

2010-05-17 Thread Philip Van Hoof
On Mon, 2010-05-17 at 15:12 -0400, Nikolaus Rath wrote: > Philip Van Hoof writes: > >> How can Tracker (reliably) detect if a resource is on an external drive? > >> I can't believe that this works for anything but the trivial case where > >> /dev/sdX is directly mounted. But if the disk is e.g. LU

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

2010-05-17 Thread Nikolaus Rath
Philip Van Hoof writes: > On Mon, 2010-05-17 at 15:12 -0400, Nikolaus Rath wrote: >> Philip Van Hoof >> writes: >> >> How can Tracker (reliably) detect if a resource is on an external drive? >> >> I can't believe that this works for anything but the trivial case where >> >> /dev/sdX is directly

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

2010-05-17 Thread Martyn Russell
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

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

2010-05-17 Thread Nikolaus Rath
Martyn Russell writes: >> 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: > > h

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

2010-05-18 Thread Martyn Russell
On Mon, 2010-05-17 at 22:23 -0400, Nikolaus Rath wrote: > It seems to me though that this code is only used when tracker is > explicitly indexing a removable volume, but not if it encounters a mount > point inside one of the configured index paths. The traverse functions > don't seem to check if th