diff options
author | Tibor Vass <tibor@docker.com> | 2021-03-19 15:31:46 +0000 |
---|---|---|
committer | Sebastiaan van Stijn <github@gone.nl> | 2021-06-17 21:21:32 +0200 |
commit | 7cf079acdb88a5e66bf77e54b5dc30df859969bd (patch) | |
tree | 36fc4ff18094c03ac8561bfc6ab02541c531ca99 /quota | |
parent | b9ad7b96bd86e5f632e5fb4f36f98dcc145014fc (diff) | |
download | docker-7cf079acdb88a5e66bf77e54b5dc30df859969bd.tar.gz |
quota: adjust build-tags to allow build without CGO
This is to allow quota package (without tests) to be built without cgo.
makeBackingFsDev was used in helpers but not defined in projectquota_unsupported.go
Also adjust some GoDoc to follow the standard format.
Signed-off-by: Tibor Vass <tibor@docker.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Diffstat (limited to 'quota')
-rw-r--r-- | quota/projectquota.go | 6 | ||||
-rw-r--r-- | quota/testhelpers.go | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/quota/projectquota.go b/quota/projectquota.go index f9f41f13c2..b8ffe64aaf 100644 --- a/quota/projectquota.go +++ b/quota/projectquota.go @@ -396,9 +396,9 @@ func getDirFd(dir *C.DIR) uintptr { return uintptr(C.dirfd(dir)) } -// Get the backing block device of the driver home directory -// and create a block device node under the home directory -// to be used by quotactl commands +// makeBackingFsDev gets the backing block device of the driver home directory +// and creates a block device node under the home directory to be used by +// quotactl commands. func makeBackingFsDev(home string) (string, error) { var stat unix.Stat_t if err := unix.Stat(home, &stat); err != nil { diff --git a/quota/testhelpers.go b/quota/testhelpers.go index 5f1e175d1d..d9a7098a6b 100644 --- a/quota/testhelpers.go +++ b/quota/testhelpers.go @@ -1,4 +1,4 @@ -// +build linux +// +build linux,!exclude_disk_quota,cgo package quota // import "github.com/docker/docker/quota" |