Version 2.01.10 -
================================
Internal snapshot restructuring.
+ Remove unused internal non-persistent snapshot option.
Allow offline extension of snapshot volumes.
Move from 2-step to 3-step on-disk metadata commit.
Scan ramdisks too and allow non-O_DIRECT fallback.
continue;
/* insert the snapshot */
- if (!vg_add_snapshot(org, cow, 1, NULL, org->le_count,
+ if (!vg_add_snapshot(org, cow, NULL, org->le_count,
lvd->lv_chunk_size)) {
log_err("Couldn't add snapshot.");
return 0;
struct snapshot {
union lvid lvid;
- int persistent; /* boolean */
uint32_t chunk_size; /* in 512 byte sectors */
uint32_t le_count;
struct list *find_snapshots(const struct logical_volume *lv);
int vg_add_snapshot(struct logical_volume *origin, struct logical_volume *cow,
- int persistent, union lvid *lvid, uint32_t extent_count,
+ union lvid *lvid, uint32_t extent_count,
uint32_t chunk_size);
int vg_remove_snapshot(struct volume_group *vg, struct logical_volume *cow);
}
int vg_add_snapshot(struct logical_volume *origin, struct logical_volume *cow,
- int persistent, union lvid *lvid, uint32_t extent_count,
+ union lvid *lvid, uint32_t extent_count,
uint32_t chunk_size)
{
struct snapshot *s;
return 0;
}
- s->persistent = persistent;
s->chunk_size = chunk_size;
s->le_count = extent_count;
s->origin = origin;
return 0;
}
- if (!vg_add_snapshot(org, cow, 1, &seg->lv->lvid, seg->len,
+ if (!vg_add_snapshot(org, cow, &seg->lv->lvid, seg->len,
chunk_size)) {
stack;
return 0;
return 0;
}
- if (!vg_add_snapshot(org, lv, 1, NULL, org->le_count,
+ if (!vg_add_snapshot(org, lv, NULL, org->le_count,
lp->chunk_size)) {
log_err("Couldn't create snapshot.");
return 0;