|
|
3bd5a4 |
From b136f48b19a5b8e788aceb4b80e97d6ae9edd0ea Mon Sep 17 00:00:00 2001
|
|
|
3bd5a4 |
From: Achilles Gaikwad <agaikwad@redhat.com>
|
|
|
3bd5a4 |
Date: Mon, 28 Jan 2019 13:03:08 -0600
|
|
|
3bd5a4 |
Subject: [PATCH] xfs_quota: fix false error reporting of project inheritance
|
|
|
3bd5a4 |
flag is not set
|
|
|
3bd5a4 |
|
|
|
3bd5a4 |
After kernel commit:
|
|
|
3bd5a4 |
|
|
|
3bd5a4 |
9336e3a7 "xfs: project id inheritance is a directory only flag"
|
|
|
3bd5a4 |
|
|
|
3bd5a4 |
xfs stopped setting the project inheritance flag on regular files, but
|
|
|
3bd5a4 |
userspace quota code still checks for it and will now issue the error:
|
|
|
3bd5a4 |
|
|
|
3bd5a4 |
"project inheritance flag is not set"
|
|
|
3bd5a4 |
|
|
|
3bd5a4 |
for every regular file during quotacheck. Fix this by only checking
|
|
|
3bd5a4 |
for the flag on directories.
|
|
|
3bd5a4 |
|
|
|
3bd5a4 |
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1663502
|
|
|
3bd5a4 |
Reported-by: Steven Gardner <sgardner@redhat.com>
|
|
|
3bd5a4 |
Signed-off-by: Achilles Gaikwad <agaikwad@redhat.com>
|
|
|
3bd5a4 |
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
|
|
|
3bd5a4 |
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
|
|
|
3bd5a4 |
---
|
|
|
3bd5a4 |
quota/project.c | 2 +-
|
|
|
3bd5a4 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
3bd5a4 |
|
|
|
3bd5a4 |
diff --git a/quota/project.c b/quota/project.c
|
|
|
3bd5a4 |
index 78ede9e..7c22947 100644
|
|
|
3bd5a4 |
--- a/quota/project.c
|
|
|
3bd5a4 |
+++ b/quota/project.c
|
|
|
3bd5a4 |
@@ -114,7 +114,7 @@ check_project(
|
|
|
3bd5a4 |
printf(_("%s - project identifier is not set"
|
|
|
3bd5a4 |
" (inode=%u, tree=%u)\n"),
|
|
|
3bd5a4 |
path, fsx.fsx_projid, (unsigned int)prid);
|
|
|
3bd5a4 |
- if (!(fsx.fsx_xflags & FS_XFLAG_PROJINHERIT))
|
|
|
3bd5a4 |
+ if (!(fsx.fsx_xflags & FS_XFLAG_PROJINHERIT) && S_ISDIR(stat->st_mode))
|
|
|
3bd5a4 |
printf(_("%s - project inheritance flag is not set\n"),
|
|
|
3bd5a4 |
path);
|
|
|
3bd5a4 |
}
|
|
|
3bd5a4 |
--
|
|
|
3bd5a4 |
2.9.5
|
|
|
3bd5a4 |
|