summaryrefslogtreecommitdiffstats
path: root/discover/devmapper.c
diff options
context:
space:
mode:
Diffstat (limited to 'discover/devmapper.c')
-rw-r--r--discover/devmapper.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/discover/devmapper.c b/discover/devmapper.c
index 1fd1215..e2ef0b5 100644
--- a/discover/devmapper.c
+++ b/discover/devmapper.c
@@ -6,6 +6,7 @@
#include "libdevmapper.h"
#include "devmapper.h"
+#include "platform.h"
#define MERGE_INTERVAL_US 200000
@@ -320,6 +321,9 @@ int devmapper_init_snapshot(struct device_handler *handler,
{
struct ramdisk_device *ramdisk;
+ if (config_get()->disable_snapshots)
+ return 0;
+
ramdisk = device_handler_get_ramdisk(handler);
if (!ramdisk) {
pb_log("No ramdisk available for snapshot %s\n",
OpenPOWER on IntegriCloud