mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
devcache: index devices also without udev
We have _insert_dirs() for udev and non-udev compilation. Compiling without udev missed to call dev_cache_index_devs(). Move the call after _insert_dirs() call so both compilation gets it.
This commit is contained in:
parent
9e14abb887
commit
07a60b59f7
@ -1,3 +1,7 @@
|
|||||||
|
Version 2.02.151
|
||||||
|
=================================
|
||||||
|
Detect device mismatch also when compiling without udev support.
|
||||||
|
|
||||||
Version 2.02.150 - 9th April 2016
|
Version 2.02.150 - 9th April 2016
|
||||||
=================================
|
=================================
|
||||||
Avoid using flushing dm status ioctl when checking for usable DM device.
|
Avoid using flushing dm status ioctl when checking for usable DM device.
|
||||||
|
@ -999,8 +999,6 @@ static void _insert_dirs(struct dm_list *dirs)
|
|||||||
log_debug_devs("%s: Failed to insert devices to "
|
log_debug_devs("%s: Failed to insert devices to "
|
||||||
"device cache fully", dl->dir);
|
"device cache fully", dl->dir);
|
||||||
}
|
}
|
||||||
|
|
||||||
(void) dev_cache_index_devs();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#else /* UDEV_SYNC_SUPPORT */
|
#else /* UDEV_SYNC_SUPPORT */
|
||||||
@ -1074,6 +1072,8 @@ static void _full_scan(int dev_scan)
|
|||||||
|
|
||||||
_insert_dirs(&_cache.dirs);
|
_insert_dirs(&_cache.dirs);
|
||||||
|
|
||||||
|
(void) dev_cache_index_devs();
|
||||||
|
|
||||||
dm_list_iterate_items(dl, &_cache.files)
|
dm_list_iterate_items(dl, &_cache.files)
|
||||||
_insert_file(dl->dir);
|
_insert_file(dl->dir);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user