From: Patrick Caulfield Date: Mon, 4 Feb 2002 09:15:14 +0000 (+0000) Subject: Don't expect the COW volume to be any particular size. X-Git-Tag: beta2~78 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=e1fc4f92be41b70eb2c55432c86da3c79e414c2d;p=dm.git Don't expect the COW volume to be any particular size. --- diff --git a/kernel/common/dm-snapshot.c b/kernel/common/dm-snapshot.c index e7ca950..bb6ea77 100644 --- a/kernel/common/dm-snapshot.c +++ b/kernel/common/dm-snapshot.c @@ -762,7 +762,7 @@ static int snapshot_ctr(struct dm_table *t, offset_t b, offset_t l, goto bad_free; *context = "Cannot get COW device"; - r = dm_table_get_device(t, cow_path, 0, l, &lc->cow_dev); + r = dm_table_get_device(t, cow_path, 0, 0, &lc->cow_dev); if (r) { dm_table_put_device(t, lc->origin_dev); goto bad_free;