Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15-SP4
xfsprogs.13989
xfsprogs-xfs_quota-fix-false-error-reporting-of...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File xfsprogs-xfs_quota-fix-false-error-reporting-of-project-inher.patch of Package xfsprogs.13989
From b136f48b19a5b8e788aceb4b80e97d6ae9edd0ea Mon Sep 17 00:00:00 2001 From: Achilles Gaikwad <agaikwad@redhat.com> Date: Mon, 28 Jan 2019 13:03:08 -0600 Subject: [PATCH] xfs_quota: fix false error reporting of project inheritance flag is not set Git-commit: b136f48b19a5b8e788aceb4b80e97d6ae9edd0ea Patch-mainline: v4.20.0-rc1 References: bsc#1158758 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> Acked-by: Anthony Iliopoulos <ailiopoulos@suse.com> --- quota/project.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quota/project.c b/quota/project.c index 78ede9e5..7c22947c 100644 --- a/quota/project.c +++ b/quota/project.c @@ -114,7 +114,7 @@ check_project( printf(_("%s - project identifier is not set" " (inode=%u, tree=%u)\n"), path, fsx.fsx_projid, (unsigned int)prid); - if (!(fsx.fsx_xflags & FS_XFLAG_PROJINHERIT)) + if (!(fsx.fsx_xflags & FS_XFLAG_PROJINHERIT) && S_ISDIR(stat->st_mode)) printf(_("%s - project inheritance flag is not set\n"), path); } -- 2.16.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor