diff options
author | Alasdair Kergon <agk@redhat.com> | 2005-01-19 17:19:39 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2005-01-19 17:19:39 +0000 |
commit | c45a8a2c1c7eeb4f5c1e7f50da9d19e7c3e9f76d (patch) | |
tree | 2da1bbc4260b35553387fe1b75b828f4652827ac /lib/metadata/snapshot_manip.c | |
parent | 73a9487f33b10e0d3e6c5f23a2b3001ea23cb1c8 (diff) | |
download | lvm2-c45a8a2c1c7eeb4f5c1e7f50da9d19e7c3e9f76d.tar.gz lvm2-c45a8a2c1c7eeb4f5c1e7f50da9d19e7c3e9f76d.tar.xz lvm2-c45a8a2c1c7eeb4f5c1e7f50da9d19e7c3e9f76d.zip |
Store snapshot and origin sizes separately.
Diffstat (limited to 'lib/metadata/snapshot_manip.c')
-rw-r--r-- | lib/metadata/snapshot_manip.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/metadata/snapshot_manip.c b/lib/metadata/snapshot_manip.c index 1854b513..664c73b2 100644 --- a/lib/metadata/snapshot_manip.c +++ b/lib/metadata/snapshot_manip.c @@ -104,9 +104,9 @@ struct list *find_snapshots(const struct logical_volume *lv) return snaplist; } -int vg_add_snapshot(struct logical_volume *origin, - struct logical_volume *cow, - int persistent, struct id *id, uint32_t chunk_size) +int vg_add_snapshot(struct logical_volume *origin, struct logical_volume *cow, + int persistent, struct id *id, uint32_t extent_count, + uint32_t chunk_size) { struct snapshot *s; struct snapshot_list *sl; @@ -127,6 +127,7 @@ int vg_add_snapshot(struct logical_volume *origin, s->persistent = persistent; s->chunk_size = chunk_size; + s->le_count = extent_count; s->origin = origin; s->cow = cow; |