1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/daemon/graphdriver/btrfs
Yong Tang b36e613d9f Run btrfs rescan only if userDiskQuota is enabled
This fix tries to address the issue raised in 29810
where btrfs subvolume removal failed when docker
is in an unprivileged lxc container. The failure
was caused by `Failed to rescan btrfs quota` with
`operation not permitted`.

However, if disk quota is not enabled, there is no
need to run a btrfs rescan at the first place.

This fix checks for `quotaEnabled` and only run btrfs
rescan if `quotaEnabled` is true.

This fix fixes 29810.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2017-01-05 05:18:11 -08:00
..
btrfs.go Run btrfs rescan only if userDiskQuota is enabled 2017-01-05 05:18:11 -08:00
btrfs_test.go Pass all graphdriver create() parameters in a struct 2016-11-09 15:59:58 -05:00
dummy_unsupported.go Replace "amd64" build tags with "cgo" as appropriate, and remove where unnecessary 2014-08-06 17:20:21 -06:00
version.go daemon/graphdriver/btrfs fix lint errors/warnings 2015-07-23 22:48:45 +00:00
version_none.go Fix typos found across repository 2015-12-13 18:04:12 +02:00
version_test.go fix t.Errorf to t.Error in serveral _test.go 2016-11-14 17:54:43 +08:00