[tracker/miner-fs-refactor: 98/127] tracker-miner-fs: Fix some TrackerDirectoryFlags passed on mounts
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/miner-fs-refactor: 98/127] tracker-miner-fs: Fix some TrackerDirectoryFlags passed on mounts
- Date: Wed, 7 Dec 2011 10:45:11 +0000 (UTC)
commit 4ca378e8c281727c72b0d90387b57853452143a9
Author: Carlos Garnacho <carlos lanedo com>
Date: Thu Oct 20 13:54:51 2011 +0200
tracker-miner-fs: Fix some TrackerDirectoryFlags passed on mounts
Some flags were missing, others wrongly overwritten
src/miners/fs/tracker-miner-files.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/miners/fs/tracker-miner-files.c b/src/miners/fs/tracker-miner-files.c
index 854ef78..4f6051f 100644
--- a/src/miners/fs/tracker-miner-files.c
+++ b/src/miners/fs/tracker-miner-files.c
@@ -1229,7 +1229,8 @@ mount_point_added_cb (TrackerStorage *storage,
GFile *config_file;
config_file = g_file_new_for_path (l->data);
- flags = TRACKER_DIRECTORY_FLAG_RECURSE;
+ flags = TRACKER_DIRECTORY_FLAG_RECURSE |
+ TRACKER_DIRECTORY_FLAG_PRESERVE;
if (tracker_config_get_enable_monitors (miner->private->config)) {
flags |= TRACKER_DIRECTORY_FLAG_MONITOR;
@@ -2959,10 +2960,11 @@ miner_files_add_removable_or_optical_directory (TrackerMinerFiles *mf,
}
indexing_tree = tracker_miner_fs_get_indexing_tree (TRACKER_MINER_FS (mf));
- flags = TRACKER_DIRECTORY_FLAG_RECURSE;
+ flags = TRACKER_DIRECTORY_FLAG_RECURSE |
+ TRACKER_DIRECTORY_FLAG_PRESERVE;
if (tracker_config_get_enable_monitors (mf->private->config)) {
- flags = TRACKER_DIRECTORY_FLAG_MONITOR;
+ flags |= TRACKER_DIRECTORY_FLAG_MONITOR;
}
g_object_set_qdata_full (G_OBJECT (mount_point_file),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]