summaryrefslogtreecommitdiffstats
path: root/lib/metadata/snapshot_manip.c
diff options
context:
space:
mode:
authorHeinz Mauelshagen <heinzm@redhat.com>2002-02-21 18:31:48 +0000
committerHeinz Mauelshagen <heinzm@redhat.com>2002-02-21 18:31:48 +0000
commit257ec146b29db9e25e2fa28a029622f7c489553c (patch)
treeb3212ec43dcbc6f105def96a1886a41b6330df95 /lib/metadata/snapshot_manip.c
parentb5ed53273ad0cfbb531b0ac02220fc3b0cb33938 (diff)
downloadlvm2-257ec146b29db9e25e2fa28a029622f7c489553c.tar.gz
lvm2-257ec146b29db9e25e2fa28a029622f7c489553c.tar.xz
lvm2-257ec146b29db9e25e2fa28a029622f7c489553c.zip
Avoid ambigous volume_group argument in vg_add_snapshot()
Diffstat (limited to 'lib/metadata/snapshot_manip.c')
-rw-r--r--lib/metadata/snapshot_manip.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/metadata/snapshot_manip.c b/lib/metadata/snapshot_manip.c
index cad99fd2..0d490e62 100644
--- a/lib/metadata/snapshot_manip.c
+++ b/lib/metadata/snapshot_manip.c
@@ -50,15 +50,14 @@ struct snapshot *find_cow(struct volume_group *vg, struct logical_volume *lv)
return NULL;
}
-int vg_add_snapshot(struct volume_group *vg,
- struct logical_volume *origin,
+int vg_add_snapshot(struct logical_volume *origin,
struct logical_volume *cow,
int persistent,
uint32_t chunk_size)
{
struct snapshot *s;
struct snapshot_list *sl;
- struct pool *mem = vg->cmd->mem;
+ struct pool *mem = origin->vg->cmd->mem;
/*
* Is the cow device already being used ?
@@ -85,7 +84,7 @@ int vg_add_snapshot(struct volume_group *vg,
}
sl->snapshot = s;
- list_add(&vg->snapshots, &sl->list);
+ list_add(&origin->vg->snapshots, &sl->list);
return 1;
}