moby/daemon/graphdriver
Cory Snider f77a3274b4
[chore] clean up reexec.Init() calls
Now that most uses of reexec have been replaced with non-reexec
solutions, most of the reexec.Init() calls peppered throughout the test
suites are unnecessary. Furthermore, most of the reexec.Init() calls in
test code neglects to check the return value to determine whether to
exit, which would result in the reexec'ed subprocesses proceeding to run
the tests, which would reexec another subprocess which would proceed to
run the tests, recursively. (That would explain why every reexec
callback used to unconditionally call os.Exit() instead of returning...)

Remove unneeded reexec.Init() calls from test and example code which no
longer needs it, and fix the reexec.Init() calls which are not inert to
exit after a reexec callback is invoked.

Signed-off-by: Cory Snider <csnider@mirantis.com>
(cherry picked from commit 4e0319c878)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-05-11 16:31:41 +02:00
..
btrfs graphdriver/btrfs: needs kernel headers >= 4.12, not >= 4.7 2023-01-08 05:04:47 +09:00
copy d/graphdriver/copy: support src fs w/o xattr support 2023-05-04 12:30:59 -04:00
devmapper daemon/graphdriver/devicemapper: simplify Udev log, and update link 2022-12-31 14:36:57 +01:00
fuse-overlayfs [chore] clean up reexec.Init() calls 2023-05-11 16:31:41 +02:00
graphtest daemon/graphdriver: fix empty-lines (revive) 2022-09-28 01:58:51 +02:00
overlay2 [chore] clean up reexec.Init() calls 2023-05-11 16:31:41 +02:00
overlayutils overlay2: account for UserNS/userxattr in metacopy test 2022-05-17 06:58:50 -06:00
register remove deprecated legacy "overlay" storage-driver 2023-04-19 17:06:45 +02:00
vfs [chore] clean up reexec.Init() calls 2023-05-11 16:31:41 +02:00
windows daemon/graphdriver/windows: cleanup errors 2023-03-14 23:00:48 +01:00
zfs daemon/graphdriver/zfs: use strings.Cut, and refactor 2022-12-21 11:09:03 +01:00
counter.go graphdriver: Fix RefCounter memory leak 2018-02-09 10:26:06 +08:00
driver.go remove deprecated legacy "overlay" storage-driver 2023-04-19 17:06:45 +02:00
driver_freebsd.go Add canonical import comment 2018-02-05 16:51:57 -05:00
driver_linux.go remove deprecated legacy "overlay" storage-driver 2023-04-19 17:06:45 +02:00
driver_test.go fix unclosed file-handles in tests 2022-05-31 21:53:38 +02:00
driver_unsupported.go Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00
driver_windows.go Add canonical import comment 2018-02-05 16:51:57 -05:00
errors.go Add canonical import comment 2018-02-05 16:51:57 -05:00
fsdiff.go daemon: remove deprecated AuFS storage driver 2023-04-15 01:27:16 +02:00
plugin.go Finish refactor of UID/GID usage to a new struct 2022-03-14 16:28:57 -04:00
proxy.go pkg/containerfs: drop ContainerFS type alias 2022-09-23 16:56:53 -04:00
proxy_test.go Finish refactor of UID/GID usage to a new struct 2022-03-14 16:28:57 -04:00