Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Target replacement support for VCRs with multiple sub_volumes #1551

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
12 changes: 10 additions & 2 deletions integration_tests/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5701,7 +5701,7 @@ mod test {
let new_vol = VolumeConstructionRequest::Volume {
id: sv_volume_id,
block_size: BLOCK_SIZE as u64,
sub_volumes: new_sub_vol.clone(),
sub_volumes: new_sub_vol,
read_only_parent: Some(rop),
};

Expand All @@ -5715,6 +5715,14 @@ mod test {
let new_downstairs = tds.new_downstairs().await.unwrap();
info!(log, "A New downstairs: {:?}", new_downstairs.address());

let more_sub_vol = vec![VolumeConstructionRequest::Region {
block_size: BLOCK_SIZE as u64,
blocks_per_extent: sv_tds.blocks_per_extent(),
extent_count: sv_tds.extent_count(),
opts: sv_opts.clone(),
gen: 3,
}];

let mut new_opts = tds.opts().clone();
new_opts.target[0] = new_downstairs.address();
info!(log, "Old ops target: {:?}", opts.target);
Expand All @@ -5732,7 +5740,7 @@ mod test {
let replacement = VolumeConstructionRequest::Volume {
id: sv_volume_id,
block_size: BLOCK_SIZE as u64,
sub_volumes: new_sub_vol.clone(),
sub_volumes: more_sub_vol,
read_only_parent: Some(new_rop),
};

Expand Down
Loading
Loading