mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-10-28 12:19:16 +00:00 
			
		
		
		
	vendor: cadvisor v0.39.0
Main upgrades: - github.com/opencontainers/runc v1.0.0-rc93 - github.com/containerd/containerd v1.4.4 - github.com/docker/docker v20.10.2 - github.com/mrunalp/fileutils v0.5.0 - github.com/opencontainers/selinux v1.8.0 - github.com/cilium/ebpf v0.2.0
This commit is contained in:
		
							
								
								
									
										12
									
								
								vendor/github.com/opencontainers/runc/libcontainer/criu_opts_linux.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										12
									
								
								vendor/github.com/opencontainers/runc/libcontainer/criu_opts_linux.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,14 +1,6 @@ | ||||
| package libcontainer | ||||
|  | ||||
| // cgroup restoring strategy provided by criu | ||||
| type cgMode uint32 | ||||
|  | ||||
| const ( | ||||
| 	CRIU_CG_MODE_SOFT    cgMode = 3 + iota // restore cgroup properties if only dir created by criu | ||||
| 	CRIU_CG_MODE_FULL                      // always restore all cgroups and their properties | ||||
| 	CRIU_CG_MODE_STRICT                    // restore all, requiring them to not present in the system | ||||
| 	CRIU_CG_MODE_DEFAULT                   // the same as CRIU_CG_MODE_SOFT | ||||
| ) | ||||
| import criu "github.com/checkpoint-restore/go-criu/v4/rpc" | ||||
|  | ||||
| type CriuPageServerInfo struct { | ||||
| 	Address string // IP address of CRIU page server | ||||
| @@ -32,7 +24,7 @@ type CriuOpts struct { | ||||
| 	PreDump                 bool               // call criu predump to perform iterative checkpoint | ||||
| 	PageServer              CriuPageServerInfo // allow to dump to criu page server | ||||
| 	VethPairs               []VethPairName     // pass the veth to criu when restore | ||||
| 	ManageCgroupsMode       cgMode             // dump or restore cgroup mode | ||||
| 	ManageCgroupsMode       criu.CriuCgMode    // dump or restore cgroup mode | ||||
| 	EmptyNs                 uint32             // don't c/r properties for namespace from this mask | ||||
| 	AutoDedup               bool               // auto deduplication for incremental dumps | ||||
| 	LazyPages               bool               // restore memory pages lazily using userfaultfd | ||||
|   | ||||
		Reference in New Issue
	
	Block a user