mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
move graphdriver/projectquota.go to its own package.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
cd0e399e06
commit
767727480f
2 changed files with 5 additions and 4 deletions
|
@ -17,6 +17,7 @@ import (
|
|||
"github.com/Sirupsen/logrus"
|
||||
|
||||
"github.com/docker/docker/daemon/graphdriver"
|
||||
"github.com/docker/docker/daemon/graphdriver/quota"
|
||||
"github.com/docker/docker/pkg/archive"
|
||||
"github.com/docker/docker/pkg/chrootarchive"
|
||||
"github.com/docker/docker/pkg/directory"
|
||||
|
@ -79,7 +80,7 @@ const (
|
|||
|
||||
type overlayOptions struct {
|
||||
overrideKernelCheck bool
|
||||
quota graphdriver.Quota
|
||||
quota quota.Quota
|
||||
}
|
||||
|
||||
// Driver contains information about the home directory and the list of active mounts that are created using this driver.
|
||||
|
@ -88,7 +89,7 @@ type Driver struct {
|
|||
uidMaps []idtools.IDMap
|
||||
gidMaps []idtools.IDMap
|
||||
ctr *graphdriver.RefCounter
|
||||
quotaCtl *graphdriver.QuotaCtl
|
||||
quotaCtl *quota.QuotaCtl
|
||||
options overlayOptions
|
||||
}
|
||||
|
||||
|
@ -163,7 +164,7 @@ func Init(home string, options []string, uidMaps, gidMaps []idtools.IDMap) (grap
|
|||
|
||||
if backingFs == "xfs" {
|
||||
// Try to enable project quota support over xfs.
|
||||
if d.quotaCtl, err = graphdriver.NewQuotaCtl(home); err == nil {
|
||||
if d.quotaCtl, err = quota.NewQuotaCtl(home); err == nil {
|
||||
projectQuotaSupported = true
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
// for both xfs/ext4 for kernel version >= v4.5
|
||||
//
|
||||
|
||||
package graphdriver
|
||||
package quota
|
||||
|
||||
/*
|
||||
#include <stdlib.h>
|
Loading…
Reference in a new issue