mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
lvcreate: disallow snapshot of cache lv
This commit is contained in:
parent
0b3d0e79f6
commit
a67c484fac
@ -243,6 +243,11 @@ static int _determine_snapshot_type(struct volume_group *vg,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (lv_is_cache(lvl->lv)) {
|
||||||
|
log_error("Snapshot of cache LV is not yet supported.");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (!arg_count(vg->cmd, extents_ARG) && !arg_count(vg->cmd, size_ARG)) {
|
if (!arg_count(vg->cmd, extents_ARG) && !arg_count(vg->cmd, size_ARG)) {
|
||||||
if (seg_is_thin(lp)) {
|
if (seg_is_thin(lp)) {
|
||||||
if (!(lp->segtype = get_segtype_from_string(vg->cmd, "thin")))
|
if (!(lp->segtype = get_segtype_from_string(vg->cmd, "thin")))
|
||||||
|
Loading…
Reference in New Issue
Block a user