1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/daemon
Stefan Wernli 1d457999c4 Fixing releaseableLayer handling of layer streams and mounts.
releaseableLayer includes automatic handling for creating a read/write layer and mounting it on a call to Mount(), but then does not correspondingly unmount the layer before trying to delete it, which will fail for some graphdrivers. Commit on a releaseable layer also leaks the tarstream for the layer. To fix this, the stream close is deferred in Commit and releaseRWLayer now correctly handles unmounting the layer before trying to delete it.  In addition, the changes include better error handling in Release() to make sure that errors are returned to the caller for failures on read/write layers instead of being ignored.# Please enter the commit message for your changes. Lines starting

Signed-off-by: Stefan Wernli <swernli@ntdev.microsoft.com>
2017-07-26 14:26:56 -07:00
..
caps
cluster Avoid using a map for log attributes 2017-07-18 19:01:20 -07:00
config add NamedUlimitOpt implement NamedOption to fix 32528 2017-06-16 10:14:09 +08:00
discovery Spelling fixes 2017-07-03 13:13:09 -07:00
events make engine support cluster config event 2017-07-11 17:21:15 +08:00
exec
graphdriver Merge pull request #33960 from cpuguy83/ignore_not_exist_err 2017-07-21 13:52:27 +02:00
initlayer [project] change syscall to /x/sys/unix|windows 2017-07-11 08:00:32 -04:00
links
logger Avoid using a map for log attributes 2017-07-18 19:01:20 -07:00
network
stats Return an empty stats if "container not found" 2017-07-10 16:30:48 +08:00
apparmor_default.go
apparmor_default_unsupported.go
archive.go Fix copy when used with scratch and images with empty RootFS 2017-06-08 15:07:16 -04:00
archive_tarcopyoptions.go
archive_tarcopyoptions_unix.go
archive_tarcopyoptions_windows.go
archive_unix.go Remove CopyOnBuild from the daemon. 2017-06-08 15:06:54 -04:00
archive_windows.go Remove CopyOnBuild from the daemon. 2017-06-08 15:06:54 -04:00
attach.go
auth.go
bindmount_solaris.go
bindmount_unix.go
build.go Fixing releaseableLayer handling of layer streams and mounts. 2017-07-26 14:26:56 -07:00
cache.go LCOW: Fix ImageCache to address right store 2017-06-20 19:49:53 -07:00
changes.go
checkpoint.go
cluster.go
commit.go LCOW: Rework after 33454 merged which refactored daemon/builder interface 2017-06-20 19:50:13 -07:00
configs.go
configs_linux.go
configs_unsupported.go
configs_windows.go
container.go Store container names in memdb 2017-07-13 12:35:00 -07:00
container_linux.go
container_operations.go Include Endpoint List for Shared Endpoints 2017-07-06 12:19:17 -07:00
container_operations_solaris.go Include Endpoint List for Shared Endpoints 2017-07-06 12:19:17 -07:00
container_operations_unix.go [project] change syscall to /x/sys/unix|windows 2017-07-11 08:00:32 -04:00
container_operations_windows.go Include Endpoint List for Shared Endpoints 2017-07-06 12:19:17 -07:00
container_windows.go
create.go LCOW: Fix nits from 33241 2017-06-27 11:59:49 -07:00
create_unix.go
create_windows.go
daemon.go Add a log message when the storage driver is overriden through the environment 2017-07-20 17:38:34 +02:00
daemon_experimental.go
daemon_linux.go Skip evaluation of symlinks to data root on IoT Core 2017-06-13 15:02:35 -07:00
daemon_linux_test.go
daemon_solaris.go Do not set -1 for swappiness 2017-07-03 11:23:15 -07:00
daemon_test.go Store container names in memdb 2017-07-13 12:35:00 -07:00
daemon_unix.go Return an empty stats if "container not found" 2017-07-10 16:30:48 +08:00
daemon_unix_test.go avoid saving container state to disk before daemon.Register 2017-06-23 07:52:34 -07:00
daemon_unsupported.go
daemon_windows.go Return an empty stats if "container not found" 2017-07-10 16:30:48 +08:00
debugtrap_unix.go [project] change syscall to /x/sys/unix|windows 2017-07-11 08:00:32 -04:00
debugtrap_unsupported.go
debugtrap_windows.go [project] change syscall to /x/sys/unix|windows 2017-07-11 08:00:32 -04:00
delete.go Merge pull request #33960 from cpuguy83/ignore_not_exist_err 2017-07-21 13:52:27 +02:00
delete_test.go LCOW: Remove CommonContainer - just Container 2017-06-20 08:55:46 -07:00
dependency.go
disk_usage.go LCOW: Move daemon stores to per platform 2017-06-20 19:49:52 -07:00
errors.go Return an empty stats if "container not found" 2017-07-10 16:30:48 +08:00
events.go make engine support cluster config event 2017-07-11 17:21:15 +08:00
events_test.go LCOW: Remove CommonContainer - just Container 2017-06-20 08:55:46 -07:00
exec.go
exec_linux.go
exec_solaris.go
exec_windows.go LCOW: pass command arguments without extra quoting 2017-06-24 10:23:17 -07:00
export.go
getsize_unix.go LCOW: Move daemon stores to per platform 2017-06-20 19:49:52 -07:00
health.go Merge pull request #33781 from mlaventure/fix-healhcheck-goroutine-leak 2017-06-26 15:34:43 -07:00
health_test.go Move checkpointing to the Container object 2017-06-23 07:52:32 -07:00
image.go LCOW: Move daemon stores to per platform 2017-06-20 19:49:52 -07:00
image_delete.go LCOW: Move daemon stores to per platform 2017-06-20 19:49:52 -07:00
image_exporter.go LCOW: Fix nits from 33241 2017-06-27 11:59:49 -07:00
image_history.go LCOW: Move daemon stores to per platform 2017-06-20 19:49:52 -07:00
image_inspect.go Set a LastUpdated time in image metadata when an image tag is updated. 2017-06-26 12:16:26 -07:00
image_pull.go LCOW: pull goes to correct stores 2017-06-20 19:49:52 -07:00
image_push.go LCOW: Fix nits from 33241 2017-06-27 11:59:49 -07:00
image_tag.go Set a LastUpdated time in image metadata when an image tag is updated. 2017-06-26 12:16:26 -07:00
images.go LCOW: Fix nits from 33241 2017-06-27 11:59:49 -07:00
import.go LCOW: Plumb through platform on Import 2017-06-20 19:49:54 -07:00
info.go LCOW: Fix nits from 33241 2017-06-27 11:59:49 -07:00
info_unix.go Fix missing "--version" argument 2017-06-11 23:31:47 +02:00
info_unix_test.go
info_windows.go
inspect.go Merge pull request #32881 from coolljt0725/fix_exec_faild 2017-07-12 19:29:27 -07:00
inspect_solaris.go Move platform specific mount data to Container 2017-06-23 07:22:47 -07:00
inspect_unix.go Move platform specific mount data to Container 2017-06-23 07:22:47 -07:00
inspect_windows.go Move platform specific mount data to Container 2017-06-23 07:22:47 -07:00
keys.go
keys_unsupported.go
kill.go Allow stopping of paused container 2017-07-12 10:35:48 -04:00
links.go
list.go Store container names in memdb 2017-07-13 12:35:00 -07:00
list_unix.go stop grabbing container locks during ps 2017-06-23 07:52:31 -07:00
list_windows.go stop grabbing container locks during ps 2017-06-23 07:52:31 -07:00
logdrivers_linux.go
logdrivers_windows.go
logs.go
logs_test.go
metrics.go
metrics_unix.go [project] change syscall to /x/sys/unix|windows 2017-07-11 08:00:32 -04:00
metrics_unsupported.go
monitor.go ensure heath monitor status updates are propagated 2017-06-23 07:52:34 -07:00
monitor_linux.go
monitor_solaris.go
monitor_windows.go
mounts.go
names.go Store container names in memdb 2017-07-13 12:35:00 -07:00
network.go
oci_linux.go
oci_solaris.go
oci_windows.go [project] change syscall to /x/sys/unix|windows 2017-07-11 08:00:32 -04:00
pause.go
prune.go return prune data when context canceled 2017-07-10 10:06:24 +08:00
reload.go Spelling fixes 2017-07-03 13:13:09 -07:00
reload_test.go
rename.go Store container names in memdb 2017-07-13 12:35:00 -07:00
resize.go
restart.go save deep copies of Container in the replica store 2017-06-23 07:52:33 -07:00
search.go
search_test.go
seccomp_disabled.go
seccomp_linux.go
seccomp_unsupported.go
secrets.go
secrets_linux.go
secrets_unsupported.go
secrets_windows.go
selinux_linux.go
selinux_unsupported.go
start.go delete unused code (daemon.Start) 2017-06-23 07:52:34 -07:00
start_unix.go save deep copies of Container in the replica store 2017-06-23 07:52:33 -07:00
start_windows.go Include Endpoint List for Shared Endpoints 2017-07-06 12:19:17 -07:00
stats.go
stats_collector.go
stats_unix.go
stats_windows.go
stop.go
top_unix.go
top_unix_test.go
top_windows.go
unpause.go
update.go save deep copies of Container in the replica store 2017-06-23 07:52:33 -07:00
update_linux.go
update_solaris.go
update_windows.go
volumes.go
volumes_unit_test.go
volumes_unix.go avoid saving container state to disk before daemon.Register 2017-06-23 07:52:34 -07:00
volumes_unix_test.go Spelling fixes 2017-07-03 13:13:09 -07:00
volumes_windows.go
wait.go
workdir.go