storage/drivers/quota
Matt Heon c6bce46c29 Do not allowing setting project ID on non-empty directories
We have previously relied on the PROJINHERIT flag for XFS quotas,
which causes the ID of the parent directory to be recursively
applied to subdirectories under the volume's parent directory.
However, PROJINHERIT only applies to directories created after
the project ID was first set. Pre-existing directories do not
get the project ID if we only set it on the parent. This means
that quota enforcement is not complete if we allow quotas to be
set on directories that are not empty. We could set recursively
but that comes with its own problems; quotas on directories that
contain pre-existing files behave strangely.

Relevant to https://github.com/containers/podman/issues/25368 but
is not a fix for that PR, more of a cleanup to make sure we don't
make the same mistake elsewhere.

Signed-off-by: Matt Heon <mheon@redhat.com>
2025-02-27 10:47:43 -05:00
..
projectquota.go fix: define quota.BackingFsBlockDeviceLink even if no-cgo 2024-01-15 18:33:37 +03:00
projectquota_supported.go Do not allowing setting project ID on non-empty directories 2025-02-27 10:47:43 -05:00
projectquota_unsupported.go all: remove old-style +build tags 2024-09-19 17:00:48 -07:00