Skip to content

Commit 0ffd48d

Browse files
char-1eechar
authored andcommitted
Refactor parameters
Signed-off-by: char-1ee <[email protected]>
1 parent 5c2fff5 commit 0ffd48d

File tree

7 files changed

+15
-16
lines changed

7 files changed

+15
-16
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:1c911676297a111a8c4e7cafb3cc42f3d4c1153a314e0c1d45f5136a89a3eb86
3-
size 36382048
2+
oid sha256:299c9623ed3262dede9e37aa52a76c84c3342cdcadc1571a7997c3c160ff9cc0
3+
size 36354520

bin/default-rootfs.img

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:e7f5439985a3bc40e6257e3da089e85cc9235f59402f0982bba3587b89ec4afe
3-
size 64577536
2+
oid sha256:ba09eb5181dd977c16af4a1890333dc61fccb01dc4a7c0b11ffc229863e5462e
3+
size 73318400

bin/firecracker

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:d2774cdc3aaca482f52aea27ed1e51a35e02e68ce764fe87ed780c3a4e6c3513
3-
size 2455144
2+
oid sha256:c44d9ea84a0ff0c5315ed0d3672494f77bafed6f6edaaf6b050a4b5e3425ebe1
3+
size 10012224

bin/firecracker-containerd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:3dfa862ba43137ee5ccb6bec70cfa1cdecc21ea1fb94852b3701b69e3426fea3
3-
size 72480720
2+
oid sha256:c4450b3c8e9cb2db1a193cd2b9594eb90054cdbdae1d837a7f426b4b0d83950f
3+
size 72445304

bin/firecracker-ctr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:4f457e142a05e438cc68e50020c2b29dc759a59c8865c0103eebe5e7138d279c
3-
size 35333240
2+
oid sha256:37487275ed6a08f4e759d9847435537bf52f20c207087e3e4226e599de8bae72
3+
size 35276648

bin/jailer

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:5306b2d86c85db70be5b063eb5f692b1c7bcd2ab822dbdee1bbd01a067cab129
3-
size 794328
2+
oid sha256:d57d145e171bde170d1218dfc6ea705097760926a568f79f9c09af52bd671c6b
3+
size 3461320

ctriface/iface.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -498,11 +498,10 @@ func (o *Orchestrator) LoadSnapshot(ctx context.Context, vmID string, snap *snap
498498
conf.MemFilePath = snap.GetMemFilePath()
499499
conf.ContainerSnapshotPath = containerSnap.GetDevicePath()
500500

501-
if conf.MemBackend == nil {
502-
conf.MemBackend = &proto.MemoryBackend{}
501+
conf.MemBackend = &proto.MemoryBackend{
502+
BackendType: fileBackend,
503+
BackendPath: snap.GetMemFilePath(),
503504
}
504-
conf.MemBackend.BackendType = fileBackend
505-
conf.MemBackend.BackendPath = snap.GetMemFilePath()
506505

507506
if o.GetUPFEnabled() {
508507
conf.MemBackend.BackendType = uffdBackend

0 commit comments

Comments
 (0)