1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-11-30 04:23:48 +03:00

Store snapshot and origin sizes separately.

This commit is contained in:
Alasdair Kergon
2005-01-19 17:19:39 +00:00
parent 73a9487f33
commit c45a8a2c1c
8 changed files with 26 additions and 15 deletions

View File

@@ -609,7 +609,8 @@ static int _lvcreate(struct cmd_context *cmd, struct lvcreate_params *lp)
return 0;
}
if (!vg_add_snapshot(org, lv, 1, NULL, lp->chunk_size)) {
if (!vg_add_snapshot(org, lv, 1, NULL, lv->le_count,
lp->chunk_size)) {
log_err("Couldn't create snapshot.");
return 0;
}