1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/pkg
Qiang Huang b7599d58cb Check sysinfo for Cpuset cpu.shares and blkio
Carried: #14015

If kernel is compiled with CONFIG_FAIR_GROUP_SCHED disabled cpu.shares
doesn't exist.
If kernel is compiled with CONFIG_CFQ_GROUP_IOSCHED disabled blkio.weight
doesn't exist.
If kernel is compiled with CONFIG_CPUSETS disabled cpuset won't be
supported.

We need to handle these conditions by checking sysinfo and verifying them.

Signed-off-by: Zefan Li <lizefan@huawei.com>
Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
2015-08-05 22:35:18 +08:00
..
ansiescape
archive Merge pull request #15146 from kolyshkin/mkdirall 2015-07-30 22:40:57 -04:00
broadcastwriter Enable golint part of #14756 2015-08-03 09:45:05 +08:00
chrootarchive Tidy platform common bits in diff 2015-07-30 13:04:49 -07:00
devicemapper
directory make docker compile on freebsd 2015-07-29 21:25:56 +03:00
fileutils
graphdb Enable golint part of #14756 2015-08-03 09:45:05 +08:00
homedir
httputils Enable golint part of #14756 2015-08-03 09:45:05 +08:00
ioutils Enable golint part of #14756 2015-08-03 09:45:05 +08:00
jsonlog
jsonmessage Fix uses of "int" where "int64" should be used instead 2015-07-31 16:31:40 -07:00
listenbuffer
mflag Fix golint for pkg/mflag 2015-07-28 15:32:42 +02:00
mount
namesgenerator pkg/namesgenerator: add a 'names-generator' binary 2015-07-31 13:07:40 +02:00
nat
parsers make docker compile on freebsd 2015-07-29 21:25:56 +03:00
pidfile
plugins
pools
progressreader Fix uses of "int" where "int64" should be used instead 2015-07-31 16:31:40 -07:00
promise
proxy
pubsub
random Prefer crypto rand seed for pkg/rand 2015-07-29 12:55:57 -04:00
reexec make docker compile on freebsd 2015-07-29 21:25:56 +03:00
signal
sockets make docker compile on freebsd 2015-07-29 21:25:56 +03:00
stdcopy
streamformatter
stringid Add GenerateNonCryptoID function to avoid entropy exhaustion 2015-07-28 22:31:01 -07:00
stringutils Use global random *rand.Rand instance in pkg 2015-07-29 09:30:48 -07:00
symlink
sysinfo Check sysinfo for Cpuset cpu.shares and blkio 2015-08-05 22:35:18 +08:00
system make docker compile on freebsd 2015-07-29 21:25:56 +03:00
systemd
tailfile
tarsum Fix uses of "int" where "int64" should be used instead 2015-07-31 16:31:40 -07:00
term
timeoutconn
timeutils
tlsconfig tlsconfig: better format for error message in tlsconfig 2015-07-30 14:15:41 -04:00
truncindex Remove read index that causes dead lock. 2015-07-31 13:53:17 -07:00
ulimit
units Multiple fixes to 'docker stats' output: 2015-07-30 10:14:57 +03:00
urlutil
useragent
version
README.md

pkg/ is a collection of utility packages used by the Docker project without being specific to its internals.

Utility packages are kept separate from the docker core codebase to keep it as small and concise as possible. If some utilities grow larger and their APIs stabilize, they may be moved to their own repository under the Docker organization, to facilitate re-use by other projects. However that is not the priority.

The directory pkg is named after the same directory in the camlistore project. Since Brad is a core Go maintainer, we thought it made sense to copy his methods for organizing Go code :) Thanks Brad!

Because utility packages are small and neatly separated from the rest of the codebase, they are a good place to start for aspiring maintainers and contributors. Get in touch if you want to help maintain them!