Skip to content

Commit 674e105

Browse files
roypatpb8o
authored andcommitted
chore: bump snapshot version for release 1.3.0
Even though no change to snapshot format was introduced, we need to keep firecracker minor versions and snapshot versions in one-to-one correspondence. Without the version number, trying to take a snapshot with `target_version=1.3` would fail, as no entry for 1.3 was in the version mapping. Signed-off-by: Patrick Roy <[email protected]>
1 parent c52a079 commit 674e105

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/vmm/src/version_map.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ pub const FC_V1_0_SNAP_VERSION: u16 = 4;
2929
pub const FC_V1_1_SNAP_VERSION: u16 = 5;
3030
/// Snap version for Firecracker v1.2
3131
pub const FC_V1_2_SNAP_VERSION: u16 = 6;
32+
/// Snap version for Firecracker v1.3
33+
pub const FC_V1_3_SNAP_VERSION: u16 = 7;
3234

3335
lazy_static! {
3436
// Note: until we have a better design, this needs to be updated when the version changes.
@@ -58,6 +60,11 @@ lazy_static! {
5860
#[cfg(target_arch = "x86_64")]
5961
version_map.set_type_version(VcpuState::type_id(), 3);
6062

63+
// v1.3 - no changes introduced, but we need to bump as mapping
64+
// between firecracker minor versions and snapshot versions needs
65+
// to be 1-to-1 (see below)
66+
version_map.new_version();
67+
6168
version_map
6269
};
6370

@@ -82,6 +89,7 @@ lazy_static! {
8289
mapping.insert(String::from("1.0.0"), FC_V1_0_SNAP_VERSION);
8390
mapping.insert(String::from("1.1.0"), FC_V1_1_SNAP_VERSION);
8491
mapping.insert(String::from("1.2.0"), FC_V1_2_SNAP_VERSION);
92+
mapping.insert(String::from("1.3.0"), FC_V1_3_SNAP_VERSION);
8593

8694
mapping
8795
};

0 commit comments

Comments
 (0)