mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #42172 from tiborvass/quota_testhelpers
quota: adjust build-tags to allow build without CGO
This commit is contained in:
commit
f32fc350ce
2 changed files with 4 additions and 4 deletions
|
@ -396,9 +396,9 @@ func getDirFd(dir *C.DIR) uintptr {
|
||||||
return uintptr(C.dirfd(dir))
|
return uintptr(C.dirfd(dir))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get the backing block device of the driver home directory
|
// makeBackingFsDev gets the backing block device of the driver home directory
|
||||||
// and create a block device node under the home directory
|
// and creates a block device node under the home directory to be used by
|
||||||
// to be used by quotactl commands
|
// quotactl commands.
|
||||||
func makeBackingFsDev(home string) (string, error) {
|
func makeBackingFsDev(home string) (string, error) {
|
||||||
var stat unix.Stat_t
|
var stat unix.Stat_t
|
||||||
if err := unix.Stat(home, &stat); err != nil {
|
if err := unix.Stat(home, &stat); err != nil {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// +build linux
|
// +build linux,!exclude_disk_quota,cgo
|
||||||
|
|
||||||
package quota // import "github.com/docker/docker/quota"
|
package quota // import "github.com/docker/docker/quota"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue