]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_quota: fix false error reporting of project inheritance flag is not set
authorAchilles Gaikwad <agaikwad@redhat.com>
Mon, 28 Jan 2019 19:03:08 +0000 (13:03 -0600)
committerEric Sandeen <sandeen@redhat.com>
Mon, 28 Jan 2019 19:03:08 +0000 (13:03 -0600)
commitb136f48b19a5b8e788aceb4b80e97d6ae9edd0ea
tree245cce70dc67008fb8b3abf4f1ecb8246cf118cb
parent45571fd5885d00520a5c1d3bb743634267920c19
xfs_quota: fix false error reporting of project inheritance flag is not set

After kernel commit:

9336e3a7 "xfs: project id inheritance is a directory only flag"

xfs stopped setting the project inheritance flag on regular files, but
userspace quota code still checks for it and will now issue the error:

"project inheritance flag is not set"

for every regular file during quotacheck.  Fix this by only checking
for the flag on directories.

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1663502
Reported-by: Steven Gardner <sgardner@redhat.com>
Signed-off-by: Achilles Gaikwad <agaikwad@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
quota/project.c