|
|
632c0f9 |
From 7e2dc84c72231bb78a5999a6ccd1da632f09fc1f Mon Sep 17 00:00:00 2001
|
|
|
632c0f9 |
From: Theodore Ts'o <tytso@mit.edu>
|
|
|
632c0f9 |
Date: Mon, 4 Apr 2016 00:35:40 -0400
|
|
|
632c0f9 |
Subject: [PATCH] repquota: use the same whitespace for quotaio_meta as
|
|
|
632c0f9 |
quotaio_v2
|
|
|
632c0f9 |
MIME-Version: 1.0
|
|
|
632c0f9 |
Content-Type: text/plain; charset=UTF-8
|
|
|
632c0f9 |
Content-Transfer-Encoding: 8bit
|
|
|
632c0f9 |
|
|
|
632c0f9 |
If a quota implementation does not have a report function, such as
|
|
|
632c0f9 |
quotaio_meta, print the same white spaces so that xfstests generic/235
|
|
|
632c0f9 |
doesn't fail. The extra white sapce makes it easier to read the
|
|
|
632c0f9 |
output, and consistency is a good thing in any case.
|
|
|
632c0f9 |
|
|
|
632c0f9 |
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
|
|
|
632c0f9 |
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
|
632c0f9 |
Signed-off-by: Petr Písař <ppisar@redhat.com>
|
|
|
632c0f9 |
---
|
|
|
632c0f9 |
repquota.c | 5 +++--
|
|
|
632c0f9 |
1 file changed, 3 insertions(+), 2 deletions(-)
|
|
|
632c0f9 |
|
|
|
632c0f9 |
diff --git a/repquota.c b/repquota.c
|
|
|
632c0f9 |
index 957dc8d..ea79fc8 100644
|
|
|
632c0f9 |
--- a/repquota.c
|
|
|
632c0f9 |
+++ b/repquota.c
|
|
|
632c0f9 |
@@ -400,9 +400,10 @@ static void report_it(struct quota_handle *h, int type)
|
|
|
632c0f9 |
if (h->qh_ops->scan_dquots(h, output) < 0)
|
|
|
632c0f9 |
return;
|
|
|
632c0f9 |
dump_cached_dquots(type);
|
|
|
632c0f9 |
- if (h->qh_ops->report && ofmt == QOF_DEFAULT) {
|
|
|
632c0f9 |
+ if (ofmt == QOF_DEFAULT) {
|
|
|
632c0f9 |
putchar('\n');
|
|
|
632c0f9 |
- h->qh_ops->report(h, flags & FL_VERBOSE);
|
|
|
632c0f9 |
+ if (h->qh_ops->report)
|
|
|
632c0f9 |
+ h->qh_ops->report(h, flags & FL_VERBOSE);
|
|
|
632c0f9 |
putchar('\n');
|
|
|
632c0f9 |
}
|
|
|
632c0f9 |
if (ofmt == QOF_XML)
|
|
|
632c0f9 |
--
|
|
|
632c0f9 |
2.5.5
|
|
|
632c0f9 |
|