Disable copying LVM LVs. It does not yet work.

This commit is contained in:
Andrius Štikonas 2016-11-10 14:29:38 +00:00
parent ee49c05d60
commit f9d9d8912b
1 changed files with 4 additions and 0 deletions

View File

@ -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.