1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-31 21:18:26 +03:00

o Remove the vg argument from find_cow

This commit is contained in:
Joe Thornber 2002-02-25 11:55:39 +00:00
parent b00094bdeb
commit 7b9e789f9c
2 changed files with 3 additions and 3 deletions

View File

@ -338,7 +338,7 @@ int lv_merge_segments(struct logical_volume *lv);
int lv_is_origin(struct logical_volume *lv);
int lv_is_cow(struct logical_volume *lv);
struct snapshot *find_cow(struct volume_group *vg, struct logical_volume *lv);
struct snapshot *find_cow(struct logical_volume *lv);
int vg_add_snapshot(struct logical_volume *origin,
struct logical_volume *cow,

View File

@ -36,12 +36,12 @@ int lv_is_cow(struct logical_volume *lv)
return 0;
}
struct snapshot *find_cow(struct volume_group *vg, struct logical_volume *lv)
struct snapshot *find_cow(struct logical_volume *lv)
{
struct list *slh;
struct snapshot *s;
list_iterate (slh, &vg->snapshots) {
list_iterate (slh, &lv->vg->snapshots) {
s = list_item(slh, struct snapshot_list)->snapshot;
if (s->cow == lv)
return s;