diff options
author | Alasdair Kergon <agk@redhat.com> | 2005-06-01 16:51:55 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2005-06-01 16:51:55 +0000 |
commit | 60f13f01d2af1cb1b05c20b11285c7c6c15acd6b (patch) | |
tree | 32895b7e9cb063b88bd00c568dc59f949cc716f2 /lib/striped | |
parent | 8e6230ddd981539221bc82ed71ed9f2308148e2c (diff) | |
download | lvm2-60f13f01d2af1cb1b05c20b11285c7c6c15acd6b.tar.gz lvm2-60f13f01d2af1cb1b05c20b11285c7c6c15acd6b.tar.xz lvm2-60f13f01d2af1cb1b05c20b11285c7c6c15acd6b.zip |
Basic support for mirrors.
Diffstat (limited to 'lib/striped')
-rw-r--r-- | lib/striped/striped.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/striped/striped.c b/lib/striped/striped.c index dd95454d..a6c1be90 100644 --- a/lib/striped/striped.c +++ b/lib/striped/striped.c @@ -119,10 +119,10 @@ static int _segments_compatible(struct lv_segment *first, width = first->area_len; - if ((first->area[s].u.pv.pvseg->pv != - second->area[s].u.pv.pvseg->pv) || - (first->area[s].u.pv.pvseg->pe + width != - second->area[s].u.pv.pvseg->pe)) + if ((seg_pv(first, s) != + seg_pv(second, s)) || + (seg_pe(first, s) + width != + seg_pe(second, s))) return 0; } @@ -144,8 +144,8 @@ static int _merge_segments(struct lv_segment *seg1, struct lv_segment *seg2) for (s = 0; s < seg1->area_count; s++) if (seg1->area[s].type == AREA_PV) - merge_pv_segments(seg1->area[s].u.pv.pvseg, - seg2->area[s].u.pv.pvseg); + merge_pv_segments(seg_pvseg(seg1, s), + seg_pvseg(seg2, s)); return 1; } |