diff options
-rw-r--r-- | src/Idle.cxx | 1 | ||||
-rw-r--r-- | src/Idle.hxx | 3 | ||||
-rw-r--r-- | src/command/StorageCommands.cxx | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/src/Idle.cxx b/src/Idle.cxx index 713454da5..8fe672200 100644 --- a/src/Idle.cxx +++ b/src/Idle.cxx @@ -46,6 +46,7 @@ static const char *const idle_names[] = { "subscription", "message", "neighbor", + "mount", nullptr }; diff --git a/src/Idle.hxx b/src/Idle.hxx index 48f7a6aa0..fb7150f98 100644 --- a/src/Idle.hxx +++ b/src/Idle.hxx @@ -64,6 +64,9 @@ static constexpr unsigned IDLE_MESSAGE = 0x400; /** a neighbor was found or lost */ static constexpr unsigned IDLE_NEIGHBOR = 0x800; +/** the mount list has changed */ +static constexpr unsigned IDLE_MOUNT = 0x1000; + /** * Adds idle flag (with bitwise "or") and queues notifications to all * clients. diff --git a/src/command/StorageCommands.cxx b/src/command/StorageCommands.cxx index 8e26f3a9a..a538c77fb 100644 --- a/src/command/StorageCommands.cxx +++ b/src/command/StorageCommands.cxx @@ -29,6 +29,7 @@ #include "Instance.hxx" #include "storage/Registry.hxx" #include "storage/CompositeStorage.hxx" +#include "Idle.hxx" static void print_storage_uri(Client &client, const Storage &storage) @@ -109,5 +110,6 @@ handle_mount(Client &client, gcc_unused int argc, char *argv[]) } composite.Mount(local_uri, storage); + idle_add(IDLE_MOUNT); return CommandResult::OK; } |