chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add a config option to suppres rescan on (un)mount.
[disorder]
/
server
/
mount.c
diff --git
a/server/mount.c
b/server/mount.c
index 506b66374c0dba121349e8783e7c12a4b16cc01f..8b1c60245e1ef649f540882196f2b74329348ad6 100644
(file)
--- a/
server/mount.c
+++ b/
server/mount.c
@@
-41,6
+41,8
@@
static int compare_fsstat(const void *av, const void *bv) {
#endif
void periodic_mount_check(ev_source *ev_) {
+ if(!config->mount_rescan)
+ return;
#if HAVE_GETFSSTAT
/* On OS X, we keep track of the hash of the kernel's mounted
* filesystem list */