diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2022-01-06 10:42:34 -0500 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2022-01-06 10:42:34 -0500 |
commit | 13f3fd2555b1f02af4c183ef51d1707af1198eb9 (patch) | |
tree | 385b25f04df21cf41537227494fd2fb166eca62b /libpod/volume_inspect.go | |
parent | c0b3df805999551db1da8ec2866457c555e627c7 (diff) | |
download | podman-13f3fd2555b1f02af4c183ef51d1707af1198eb9.tar.gz podman-13f3fd2555b1f02af4c183ef51d1707af1198eb9.tar.bz2 podman-13f3fd2555b1f02af4c183ef51d1707af1198eb9.zip |
Set volume NeedsCopyUp to false iff data was copied up
Currently Docker copies up the first volume on a mountpoint with
data.
Fixes: https://github.com/containers/podman/issues/12714
Also added NeedsCopyUP, NeedsChown and MountCount to the podman volume
inspect code.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'libpod/volume_inspect.go')
-rw-r--r-- | libpod/volume_inspect.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libpod/volume_inspect.go b/libpod/volume_inspect.go index c3f51222d..70098df5a 100644 --- a/libpod/volume_inspect.go +++ b/libpod/volume_inspect.go @@ -60,6 +60,9 @@ func (v *Volume) Inspect() (*define.InspectVolumeData, error) { data.UID = v.uid() data.GID = v.gid() data.Anonymous = v.config.IsAnon + data.MountCount = v.state.MountCount + data.NeedsCopyUp = v.state.NeedsCopyUp + data.NeedsChown = v.state.NeedsChown return data, nil } |