Merge pull request #42172 from tiborvass/quota_testhelpers

quota: adjust build-tags to allow build without CGO
This commit is contained in:
Sebastiaan van Stijn 2021-06-18 00:17:09 +02:00 committed by GitHub
commit f32fc350ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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 {

View File

@ -1,4 +1,4 @@
// +build linux
// +build linux,!exclude_disk_quota,cgo
package quota // import "github.com/docker/docker/quota"