moby/pkg
Ji.Zhilong 5e505d101f devmapper: prevent libdevmapper from deleting device symlinks in RemoveDeviceDeferred
if there is no cookie set in dm task, or flag DM_UDEV_DISABLE_LIBRARY_FALLBACK
is cleared for a DM_DEV_REMOVE task, libdevmapper will fallback to clean up the
symlink under /dev/mapper by itself, no matter the device removal is executed
immediately or deferred by the kernel.In some cases, the removal is deferred by the
kernel, while the symlink is deleted directly by libdevmapper, when docker tries to
activate the device again, the deferred removal will be canceld, but the symlink will
not show up again, so docker's attempt to mount the device by the symlink will fail,
and it will eventually leads to a `docker start/diff` error.

Fixes #24671

Signed-off-by: Ji.Zhilong <zhilongji@gmail.com>
2016-08-23 23:58:53 +08:00
..
aaparser apparmor: fix version checks to work properly 2016-02-15 20:36:07 +11:00
archive Don't create devices if in a user namespace 2016-08-12 16:26:58 -04:00
authorization Enable to dynamically reload authorization plugins via daemon.config 2016-07-30 14:59:07 +03:00
broadcaster Improved push and pull with upload manager and download manager 2015-12-09 19:13:35 -08:00
chrootarchive Use real chroot if daemon is running in a user namespace 2016-08-12 16:31:01 -04:00
devicemapper devmapper: prevent libdevmapper from deleting device symlinks in RemoveDeviceDeferred 2016-08-23 23:58:53 +08:00
directory Fix filepath.Walk misusage in pkg/directory 2016-05-30 07:40:46 +00:00
discovery Refactoring for logrus formatting 2016-07-18 12:53:34 -06:00
filenotify Modify several fun notes in fsnotify.go 2016-07-24 13:35:33 +08:00
fileutils fix typos 2016-07-23 11:32:23 +08:00
gitutils Fix gitconfig dependency in pkg/gitutils.TestCheckoutGit 2016-06-02 17:44:09 +09:00
graphdb Windows CI: Turn off failing unit tests pkg\graphdb 2016-03-02 19:27:41 -08:00
homedir Revert "resolve the config file from the sudo user" 2016-02-29 13:51:43 +01:00
httputils fix typos 2016-06-02 17:17:22 +08:00
idtools Lazy init useradd and remove init() 2016-04-06 17:53:45 -04:00
integration return err when stack name does not exist 2016-07-12 00:59:30 +08:00
ioutils Set permission on atomic file write 2016-06-29 13:09:13 -07:00
jsonlog Add support for reading logs extra attrs 2016-05-06 20:42:20 -04:00
jsonmessage fix typos 2016-06-02 17:17:22 +08:00
listeners Get the Docker Engine to build clean on Solaris 2016-05-23 16:37:12 -07:00
locker Fix typos found across repository 2015-12-13 18:04:12 +02:00
longpath Windows: Fixing longpath hanlding of UNC paths. 2015-09-30 19:36:08 -07:00
loopback Fix logrus formatting 2016-06-11 13:16:55 -07:00
mflag Merge pull request #24717 from icaoweiwei/patch_2016-07-16_1 2016-08-12 10:54:01 -07:00
mount Inconsistent --tmpfs behavior 2016-05-26 19:28:18 -07:00
namesgenerator Add entries for Hugh Beaver, Lois Haibt and some more adjectives 2016-08-01 16:05:27 -04:00
parsers Fix TestUpdateKernelMemoryUninitialized on new kernel version 2016-08-02 13:17:20 +08:00
pidfile make pkg pidfile support darwin 2016-08-01 22:01:20 +08:00
platform make package docker/pkg/platform support darwin 2016-05-26 11:10:29 +08:00
plugins Fix pkg/plugins TLSConfig panic 2016-07-26 08:53:54 +00:00
pools pkg/pools: avoid copy of sync.Pool 2016-06-23 16:09:13 -07:00
progress fix typos 2016-06-02 17:17:22 +08:00
promise Move Go() promise-like func from utils to pkg/promise 2014-09-29 23:16:27 -07:00
pubsub Revert "use pubsub instead of filenotify to follow json logs" 2016-02-23 21:43:52 -05:00
random Fix typos found across repository 2015-12-13 18:04:12 +02:00
reexec make more pkgs support darwin 2016-08-10 22:56:05 +08:00
registrar fix typos in pkg 2016-04-09 21:18:15 +08:00
signal Windows: Stack dump to file 2016-07-21 20:04:47 -07:00
stdcopy Optimizations for StdWriter 2016-03-25 22:14:27 -04:00
streamformatter Fix pkg/streamformatter.TestJSONFormatProgress 2016-05-31 09:09:06 +00:00
stringid Minor refactor and beter coverage for pkg/stringid 2016-07-20 00:23:06 +02:00
stringutils Implement stringutils.Ellipsis() 2016-08-11 14:14:06 +02:00
symlink fix variables that werent being called 2016-03-17 13:19:55 -07:00
sysinfo make more pkgs support darwin 2016-08-10 22:56:05 +08:00
system make more pkgs support darwin 2016-08-10 22:56:05 +08:00
tailfile typofix - https://github.com/vlajos/misspell_fixer 2015-08-07 23:25:49 +01:00
tarsum add defer file.Close to avoid potential fd leak 2016-08-10 08:36:09 +08:00
term make more pkgs support darwin 2016-08-10 22:56:05 +08:00
testutil Use newer default values for mounts CLI 2016-07-06 22:34:39 -04:00
tlsconfig Fix golint warnings 2015-11-02 08:02:25 -08:00
truncindex pkg: truncindex: provide more info in error 2016-03-17 15:53:12 +01:00
urlutil Support unixgram syslog address 2016-04-28 11:04:50 +08:00
useragent Fix typos found across repository 2015-12-13 18:04:12 +02:00
README.md Add README to pkg 2013-12-23 23:12:19 +00:00

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!