+Version 2.00.17 -
+=============================
+ Additional kernel target checks before pvmove & snapshot creation.
+
Version 2.00.16 - 24 May 2004
=============================
Set area_count within alloc_lv_segment.
#include "toolcontext.h"
#include "segtypes.h"
#include "display.h"
+#include "activate.h"
/*
* Replace any LV segments on given PV with temporary mirror.
return 0;
}
+ if (activation() && segtype->ops->target_present &&
+ !segtype->ops->target_present()) {
+ log_error("%s: Required device-mapper target(s) not "
+ "detected in your kernel", segtype->name);
+ return 0;
+ }
+
/* Work through all segments on the supplied PV */
list_iterate(segh, &lv->segments) {
seg = list_item(segh, struct lv_segment);
}
lp->chunk_size = 2 * arg_uint_value(cmd, chunksize_ARG, 8);
log_verbose("Setting chunksize to %d sectors.", lp->chunk_size);
+
+ if (!(lp->segtype = get_segtype_from_string(cmd, "snapshot"))) {
+ stack;
+ return 0;
+ }
} else {
if (arg_count(cmd, chunksize_ARG)) {
log_error("-c is only available with snapshots");