summaryrefslogtreecommitdiff
path: root/lib/device/dev-cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/device/dev-cache.c')
-rw-r--r--lib/device/dev-cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/device/dev-cache.c b/lib/device/dev-cache.c
index 8461f40a2..84471ab41 100644
--- a/lib/device/dev-cache.c
+++ b/lib/device/dev-cache.c
@@ -999,8 +999,6 @@ static void _insert_dirs(struct dm_list *dirs)
log_debug_devs("%s: Failed to insert devices to "
"device cache fully", dl->dir);
}
-
- (void) dev_cache_index_devs();
}
#else /* UDEV_SYNC_SUPPORT */
@@ -1074,6 +1072,8 @@ static void _full_scan(int dev_scan)
_insert_dirs(&_cache.dirs);
+ (void) dev_cache_index_devs();
+
dm_list_iterate_items(dl, &_cache.files)
_insert_file(dl->dir);