From 83a587b79e9a5a5279f1c7a26918fc8c08523a7f Mon Sep 17 00:00:00 2001 From: Samuel Mendoza-Jonas Date: Tue, 26 Jul 2016 15:45:37 +1000 Subject: 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 --- discover/device-handler.h | 1 + 1 file changed, 1 insertion(+) (limited to 'discover/device-handler.h') diff --git a/discover/device-handler.h b/discover/device-handler.h index 6b1a757..b6f9fd5 100644 --- a/discover/device-handler.h +++ b/discover/device-handler.h @@ -142,5 +142,6 @@ void device_handler_reinit(struct device_handler *handler); int device_request_write(struct discover_device *dev, bool *release); void device_release_write(struct discover_device *dev, bool release); +void device_sync_snapshots(struct device_handler *handler, const char *device); #endif /* _DEVICE_HANDLER_H */ -- cgit v1.2.1