|author||Samuel Mendoza-Jonas <email@example.com>||2016-07-26 15:45:37 +1000|
|committer||Samuel Mendoza-Jonas <firstname.lastname@example.org>||2016-08-08 13:52:50 +1000|
discover: Add 'sync' user event
Add a user event named 'sync' that causes the discover server to merge the devicemapper snapshots of mounted devices. This is particularly useful as a debug aid (for example, when copying logs to a USB device), as the server will otherwise only sync changes to mounted devices in response to parser actions. The command can be called as pb-event sync@device to sync a particular device, or as pb-event sync@all to sync all devices with snapshots. Signed-off-by: Samuel Mendoza-Jonas <email@example.com>
Diffstat (limited to 'utils/pb-event.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/pb-event.c b/utils/pb-event.c
index 572eb16..10bf4f5 100644
@@ -55,7 +55,7 @@ static void print_usage(void)
" Events can be read from stdin, or provided on the command line.\n"
" User events must have the following format:\n"
-" (add|remove|boot)@device-id [name=value] [image=value] [args=value]\n"
+" (add|remove|boot|sync)@device-id [name=value] [image=value] [args=value]\n"
" When read from stdin, components are separated by NUL chars\n"