Skip to content

Commit

Permalink
Refactor parameters
Browse files Browse the repository at this point in the history
Signed-off-by: char-1ee <[email protected]>
  • Loading branch information
char-1ee authored and char committed Dec 20, 2023
1 parent 5c2fff5 commit 0ffd48d
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 16 deletions.
4 changes: 2 additions & 2 deletions bin/containerd-shim-aws-firecracker
Git LFS file not shown
4 changes: 2 additions & 2 deletions bin/default-rootfs.img
Git LFS file not shown
4 changes: 2 additions & 2 deletions bin/firecracker
Git LFS file not shown
4 changes: 2 additions & 2 deletions bin/firecracker-containerd
Git LFS file not shown
4 changes: 2 additions & 2 deletions bin/firecracker-ctr
Git LFS file not shown
4 changes: 2 additions & 2 deletions bin/jailer
Git LFS file not shown
7 changes: 3 additions & 4 deletions ctriface/iface.go
Original file line number Diff line number Diff line change
Expand Up @@ -498,11 +498,10 @@ func (o *Orchestrator) LoadSnapshot(ctx context.Context, vmID string, snap *snap
conf.MemFilePath = snap.GetMemFilePath()
conf.ContainerSnapshotPath = containerSnap.GetDevicePath()

if conf.MemBackend == nil {
conf.MemBackend = &proto.MemoryBackend{}
conf.MemBackend = &proto.MemoryBackend{
BackendType: fileBackend,
BackendPath: snap.GetMemFilePath(),
}
conf.MemBackend.BackendType = fileBackend
conf.MemBackend.BackendPath = snap.GetMemFilePath()

if o.GetUPFEnabled() {
conf.MemBackend.BackendType = uffdBackend
Expand Down

0 comments on commit 0ffd48d

Please sign in to comment.