mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
gofmt GoDoc comments with go1.19
Older versions of Go don't format comments, so committing this as a separate commit, so that we can already make these changes before we upgrade to Go 1.19. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
6668801d40
commit
52c1a2fae8
55 changed files with 415 additions and 389 deletions
|
|
@ -102,9 +102,10 @@ func (state *pquotaState) updateMinProjID(minProjectID uint32) {
|
|||
// This test will fail if the backing fs is not xfs.
|
||||
//
|
||||
// xfs_quota tool can be used to assign a project id to the driver home directory, e.g.:
|
||||
// echo 999:/var/lib/docker/overlay2 >> /etc/projects
|
||||
// echo docker:999 >> /etc/projid
|
||||
// xfs_quota -x -c 'project -s docker' /<xfs mount point>
|
||||
//
|
||||
// echo 999:/var/lib/docker/overlay2 >> /etc/projects
|
||||
// echo docker:999 >> /etc/projid
|
||||
// xfs_quota -x -c 'project -s docker' /<xfs mount point>
|
||||
//
|
||||
// In that case, the home directory project id will be used as a "start offset"
|
||||
// and all containers will be assigned larger project ids (e.g. >= 1000).
|
||||
|
|
@ -113,7 +114,6 @@ func (state *pquotaState) updateMinProjID(minProjectID uint32) {
|
|||
// Then try to create a test directory with the next project id and set a quota
|
||||
// on it. If that works, continue to scan existing containers to map allocated
|
||||
// project ids.
|
||||
//
|
||||
func NewControl(basePath string) (*Control, error) {
|
||||
//
|
||||
// If we are running in a user namespace quota won't be supported for
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue