aboutsummaryrefslogtreecommitdiff
path: root/test/system
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@pm.me>2022-09-12 09:28:58 -0400
committerMatthew Heon <matthew.heon@pm.me>2022-09-12 16:43:24 -0400
commit07a8eb829563df9215d86eed7b3337c14dadb6cc (patch)
tree6fda6b6d6c98b4d4ffd39b3a24355ada043b426e /test/system
parent94864cbce6e758552c853999951681bfdef93b18 (diff)
downloadpodman-07a8eb829563df9215d86eed7b3337c14dadb6cc.tar.gz
podman-07a8eb829563df9215d86eed7b3337c14dadb6cc.tar.bz2
podman-07a8eb829563df9215d86eed7b3337c14dadb6cc.zip
Ensure that the DF endpoint updated volume refcount
The field was already exposed already in the `system df` output so this just required a bit of plumbing and testing. As part of this, fix `podman systemd df` volume in-use logic. Previously, volumes were only considered to be in use if the container using them was running. This does not match Docker's behavior, where a volume is considered in use as long as a container exists that uses the volume, even if said container is not running. Fixes #15720 Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'test/system')
-rw-r--r--test/system/320-system-df.bats2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/system/320-system-df.bats b/test/system/320-system-df.bats
index 217357b37..35e121c62 100644
--- a/test/system/320-system-df.bats
+++ b/test/system/320-system-df.bats
@@ -27,7 +27,7 @@ function teardown() {
run_podman system df --format '{{ .Type }}:{{ .Total }}:{{ .Active }}'
is "${lines[0]}" "Images:1:1" "system df : Images line"
is "${lines[1]}" "Containers:2:1" "system df : Containers line"
- is "${lines[2]}" "Local Volumes:2:1" "system df : Volumes line"
+ is "${lines[2]}" "Local Volumes:2:2" "system df : Volumes line"
# Try -v. (Grrr. No way to specify individual formats)
#