Merge pull request #655 from WeiZhang555/add-ref-counter-for-devices

Add ref counter for devices
This commit is contained in:
James O. D. Hunt
2018-09-06 09:51:07 +01:00
committed by GitHub
21 changed files with 394 additions and 231 deletions

View File

@@ -54,18 +54,13 @@ const (
type State struct {
State stateString `json:"state"`
BlockDeviceID string
// Index of the block device passed to hypervisor.
BlockIndex int `json:"blockIndex"`
// File system of the rootfs incase it is block device
Fstype string `json:"fstype"`
// Bool to indicate if the drive for a container was hotplugged.
HotpluggedDrive bool `json:"hotpluggedDrive"`
// PCI slot at which the block device backing the container rootfs is attached.
RootfsPCIAddr string `json:"rootfsPCIAddr"`
// Pid is the process id of the sandbox container which is the first
// container to be started.
Pid int `json:"pid"`