| To: | xfs@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH 11/14] xfs_quota: remove impossible tests in printpath |
| From: | Eric Sandeen <sandeen@xxxxxxxxxx> |
| Date: | Tue, 8 Apr 2014 18:25:01 -0500 |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <1396999504-13769-1-git-send-email-sandeen@xxxxxxxxxx> |
| References: | <1396999504-13769-1-git-send-email-sandeen@xxxxxxxxxx> |
printpath() had some cut & paste tests of "c" - but
nothing had set it yet other than c=0, so testing it
is pointless. Just remove tests for non-zero "c"
until we might have set it to something interesting.
Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxx>
---
quota/path.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/quota/path.c b/quota/path.c
index e9a6834..47fdd93 100644
--- a/quota/path.c
+++ b/quota/path.c
@@ -54,9 +54,9 @@ printpath(
c = 0;
printf(" (");
if (qstat.qs_flags & XFS_QUOTA_UDQ_ENFD)
- c = printf("%suquota", c ? ", " : "");
+ c = printf("uquota");
else if (qstat.qs_flags & XFS_QUOTA_UDQ_ACCT)
- c = printf("%suqnoenforce", c ? ", " : "");
+ c = printf("uqnoenforce");
if (qstat.qs_flags & XFS_QUOTA_GDQ_ENFD)
c = printf("%sgquota", c ? ", " : "");
else if (qstat.qs_flags & XFS_QUOTA_GDQ_ACCT)
--
1.7.1
|
| Previous by Date: | [PATCH 14/14] xfs_db: don't use invalid index in ring_f, Eric Sandeen |
|---|---|
| Next by Date: | [PATCH 08/14] xfsprogs: free resources in libxfs_alloc_file_space error paths, Eric Sandeen |
| Previous by Thread: | [PATCH 14/14] xfs_db: don't use invalid index in ring_f, Eric Sandeen |
| Next by Thread: | [PATCH 08/14] xfsprogs: free resources in libxfs_alloc_file_space error paths, Eric Sandeen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |