1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Prevent snapshots of mirrors.

This commit is contained in:
Alasdair Kergon 2006-05-24 13:58:14 +00:00
parent aba30ebcdb
commit 83de5aa60e
2 changed files with 8 additions and 0 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.07 -
=================================
Prevent snapshots of mirrors.
Add DISTCLEAN_TARGETS to make template for configure.h.
More fixes to error paths.
Fix lvcreate corelog validation.

View File

@ -595,6 +595,13 @@ static int _lvcreate(struct cmd_context *cmd, struct lvcreate_params *lp)
"supported yet");
return 0;
}
if (org->status & MIRROR_IMAGE ||
org->status & MIRROR_LOG ||
org->status & MIRRORED) {
log_error("Snapshots and mirrors may not yet be mixed.");
return 0;
}
/* Must zero cow */
status |= LVM_WRITE;
}