Skip to content

Commit

Permalink
Use indirect descriptors in block device tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
qwandor committed Jul 24, 2023
1 parent f22e068 commit aa76c3d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/device/blk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ mod tests {
let transport = FakeTransport {
device_type: DeviceType::Block,
max_queue_size: QUEUE_SIZE.into(),
device_features: 0,
device_features: BlkFeature::RING_INDIRECT_DESC.bits(),
config_space: NonNull::from(&mut config_space),
state: state.clone(),
};
Expand Down Expand Up @@ -677,7 +677,7 @@ mod tests {
let transport = FakeTransport {
device_type: DeviceType::Block,
max_queue_size: QUEUE_SIZE.into(),
device_features: 0,
device_features: BlkFeature::RING_INDIRECT_DESC.bits(),
config_space: NonNull::from(&mut config_space),
state: state.clone(),
};
Expand Down Expand Up @@ -752,7 +752,7 @@ mod tests {
let transport = FakeTransport {
device_type: DeviceType::Block,
max_queue_size: QUEUE_SIZE.into(),
device_features: BlkFeature::FLUSH.bits(),
device_features: (BlkFeature::RING_INDIRECT_DESC | BlkFeature::FLUSH).bits(),
config_space: NonNull::from(&mut config_space),
state: state.clone(),
};
Expand Down Expand Up @@ -819,7 +819,7 @@ mod tests {
let transport = FakeTransport {
device_type: DeviceType::Block,
max_queue_size: QUEUE_SIZE.into(),
device_features: 0,
device_features: BlkFeature::RING_INDIRECT_DESC.bits(),
config_space: NonNull::from(&mut config_space),
state: state.clone(),
};
Expand Down

0 comments on commit aa76c3d

Please sign in to comment.