diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2022-07-06 07:23:36 -0400 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2022-07-26 13:32:54 -0400 |
commit | 183fdea5f595886c799f804d3e7483d3bb0139c8 (patch) | |
tree | f24adeedb17afad2f0f1bdabd926ef84e51cffae /cmd/podman/root.go | |
parent | 17dbce2fb060b4803b2dae4eb6b78fdebea5b61f (diff) | |
download | podman-183fdea5f595886c799f804d3e7483d3bb0139c8.tar.gz podman-183fdea5f595886c799f804d3e7483d3bb0139c8.tar.bz2 podman-183fdea5f595886c799f804d3e7483d3bb0139c8.zip |
Use SafeChown rather then chown for volumes on NFS
NFS Servers will thrown ENOTSUPP error if you attempt to
chown a directory to the same UID and GID as the directory
already has. If volumes are stored on NFS directories this
throws an ugly error and then works on the next try.
Bottom line don't chown directories that already have the correct
UID and GID.
Fixes: https://github.com/containers/podman/issues/14766
[NO NEW TESTS NEEDED] Difficult to setup an NFS Server in testing.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'cmd/podman/root.go')
0 files changed, 0 insertions, 0 deletions