mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-24 06:27:39 +00:00
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:
parent
ede1dae65d
commit
20f1f62a2a
@ -27,7 +27,7 @@ pub type ArcMutexDevice = Arc<Mutex<dyn Device>>;
|
|||||||
/// in Sandbox.
|
/// in Sandbox.
|
||||||
///
|
///
|
||||||
/// @block_driver to be used for block device;
|
/// @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.
|
/// @released_block_index for blk devices removed and indexes will released at the same time.
|
||||||
#[derive(Clone, Debug, Default)]
|
#[derive(Clone, Debug, Default)]
|
||||||
struct SharedInfo {
|
struct SharedInfo {
|
||||||
@ -54,7 +54,7 @@ impl SharedInfo {
|
|||||||
|
|
||||||
SharedInfo {
|
SharedInfo {
|
||||||
block_driver,
|
block_driver,
|
||||||
block_index: 1,
|
block_index: 0,
|
||||||
released_block_index: vec![],
|
released_block_index: vec![],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user