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:
parent
b00094bdeb
commit
7b9e789f9c
lib/metadata
@ -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,
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user