github.com/docker/docker@v299999999.0.0-20200612211812-aaf470eca7b5+incompatible/daemon/graphdriver/quota/types.go (about)

     1  // +build linux
     2  
     3  package quota // import "github.com/docker/docker/daemon/graphdriver/quota"
     4  
     5  import "sync"
     6  
     7  // Quota limit params - currently we only control blocks hard limit
     8  type Quota struct {
     9  	Size uint64
    10  }
    11  
    12  // Control - Context to be used by storage driver (e.g. overlay)
    13  // who wants to apply project quotas to container dirs
    14  type Control struct {
    15  	backingFsBlockDev string
    16  	sync.RWMutex      // protect nextProjectID and quotas map
    17  	nextProjectID     uint32
    18  	quotas            map[string]uint32
    19  }