From f9d9d8912b0789db75a09a2bc95a24c86f752219 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Thu, 10 Nov 2016 14:29:38 +0000 Subject: [PATCH] Disable copying LVM LVs. It does not yet work. --- src/ops/copyoperation.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ops/copyoperation.cpp b/src/ops/copyoperation.cpp index b21a7ae..8b0b857 100644 --- a/src/ops/copyoperation.cpp +++ b/src/ops/copyoperation.cpp @@ -287,6 +287,10 @@ bool CopyOperation::canCopy(const Partition* p) if (p->isMounted()) return false; + // FIXME: Does not work well enough yet + if (p->roles().has(PartitionRole::Lvm_Lv)) + return false; + // Normally, copying partitions that have not been written to disk yet should // be forbidden here. The operation stack, however, will take care of these // problematic cases when pushing the CopyOperation onto the stack.