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