mirror of
https://github.com/containers/podman.git
synced 2025-06-28 06:18:57 +08:00
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>
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user