Skip to content

Commit 905d540

Browse files
committed
Use indirect descriptors in block device tests.
1 parent 976cda7 commit 905d540

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/device/blk.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ mod tests {
607607
let transport = FakeTransport {
608608
device_type: DeviceType::Block,
609609
max_queue_size: QUEUE_SIZE.into(),
610-
device_features: 0,
610+
device_features: BlkFeature::RING_INDIRECT_DESC.bits(),
611611
config_space: NonNull::from(&mut config_space),
612612
state: state.clone(),
613613
};
@@ -677,7 +677,7 @@ mod tests {
677677
let transport = FakeTransport {
678678
device_type: DeviceType::Block,
679679
max_queue_size: QUEUE_SIZE.into(),
680-
device_features: 0,
680+
device_features: BlkFeature::RING_INDIRECT_DESC.bits(),
681681
config_space: NonNull::from(&mut config_space),
682682
state: state.clone(),
683683
};
@@ -752,7 +752,7 @@ mod tests {
752752
let transport = FakeTransport {
753753
device_type: DeviceType::Block,
754754
max_queue_size: QUEUE_SIZE.into(),
755-
device_features: BlkFeature::FLUSH.bits(),
755+
device_features: (BlkFeature::RING_INDIRECT_DESC | BlkFeature::FLUSH).bits(),
756756
config_space: NonNull::from(&mut config_space),
757757
state: state.clone(),
758758
};
@@ -819,7 +819,7 @@ mod tests {
819819
let transport = FakeTransport {
820820
device_type: DeviceType::Block,
821821
max_queue_size: QUEUE_SIZE.into(),
822-
device_features: 0,
822+
device_features: BlkFeature::RING_INDIRECT_DESC.bits(),
823823
config_space: NonNull::from(&mut config_space),
824824
state: state.clone(),
825825
};

0 commit comments

Comments
 (0)