runtime-rs: change block index to 0

Change block index in SharedInfo to 0 for vda.

Fixes #7119

Signed-off-by: Chelsea Mafrica <chelsea.e.mafrica@intel.com>
Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
James O. D. Hunt 2023-06-16 01:20:26 -07:00 committed by Zhongtao Hu
parent ede1dae65d
commit 20f1f62a2a

View File

@ -27,7 +27,7 @@ pub type ArcMutexDevice = Arc<Mutex<dyn Device>>;
/// in Sandbox.
///
/// @block_driver to be used for block device;
/// @block_index generally default is 1 for <vdb>;
/// @block_index generally default is 0 for <vda>;
/// @released_block_index for blk devices removed and indexes will released at the same time.
#[derive(Clone, Debug, Default)]
struct SharedInfo {
@ -54,7 +54,7 @@ impl SharedInfo {
SharedInfo {
block_driver,
block_index: 1,
block_index: 0,
released_block_index: vec![],
}
}