summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2011-02-17 16:58:57 +0100
committerArnel A. Borja <arnelborja@src.gnome.org>2013-08-31 00:56:46 +0800
commit1bc2af04441a5d64173b1d67be01268269f088d0 (patch)
treeb5199f90edf94306ee996457dd23ad29d42d1ad4
parentd1fa9c286442dca994eddfd73ca659976b8e19ae (diff)
downloadlibmediaart-1bc2af04441a5d64173b1d67be01268269f088d0.tar.gz
libtracker-miner,storage: Skip mount points without mount path
-rw-r--r--src/libtracker-miner/tracker-storage.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/libtracker-miner/tracker-storage.c b/src/libtracker-miner/tracker-storage.c
index f97223e..b80ccb6 100644
--- a/src/libtracker-miner/tracker-storage.c
+++ b/src/libtracker-miner/tracker-storage.c
@@ -650,19 +650,25 @@ mount_add (TrackerStorage *storage,
g_free (content_type);
} else {
g_debug (" Being ignored because mount has no GVolume (i.e. not user mountable) "
- "and has mount root path available");
+ "and has no mount root path available");
}
}
}
/* If we got something to be used as UUID, then add the mount
* to the TrackerStorage */
- if (uuid && !g_hash_table_lookup (priv->mounts_by_uuid, uuid)) {
- g_debug (" Adding mount point with UUID:'%s', removable: %s, optical: %s",
+ if (uuid && mount_path && !g_hash_table_lookup (priv->mounts_by_uuid, uuid)) {
+ g_debug (" Adding mount point with UUID: '%s', removable: %s, optical: %s, path: '%s'",
uuid,
is_removable ? "yes" : "no",
- is_optical ? "yes" : "no");
+ is_optical ? "yes" : "no",
+ mount_path);
mount_add_new (storage, uuid, mount_path, is_removable, is_optical);
+ } else {
+ g_debug (" Skipping mount point with UUID: '%s', path: '%s', already managed: '%s'",
+ uuid ? uuid : "none",
+ mount_path ? mount_path : "none",
+ (uuid && g_hash_table_lookup (priv->mounts_by_uuid, uuid)) ? "yes" : "no");
}
g_free (mount_name);