diff options
author | Theodore Ts'o <tytso@mit.edu> | 2016-04-04 00:35:40 -0400 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2016-04-04 11:31:01 +0200 |
commit | 7e2dc84c72231bb78a5999a6ccd1da632f09fc1f (patch) | |
tree | a2fb6d1b84fbc21abdcba266d53310c235c0018c | |
parent | 1f99109c31bfbbdfbcaab4046f21d87eed625da8 (diff) | |
download | quota-tools-7e2dc84c72231bb78a5999a6ccd1da632f09fc1f.tar.gz |
repquota: use the same whitespace for quotaio_meta as quotaio_v2
If a quota implementation does not have a report function, such as
quotaio_meta, print the same white spaces so that xfstests generic/235
doesn't fail. The extra white sapce makes it easier to read the
output, and consistency is a good thing in any case.
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Jan Kara <jack@suse.cz>
-rw-r--r-- | repquota.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -400,9 +400,10 @@ static void report_it(struct quota_handle *h, int type) if (h->qh_ops->scan_dquots(h, output) < 0) return; dump_cached_dquots(type); - if (h->qh_ops->report && ofmt == QOF_DEFAULT) { + if (ofmt == QOF_DEFAULT) { putchar('\n'); - h->qh_ops->report(h, flags & FL_VERBOSE); + if (h->qh_ops->report) + h->qh_ops->report(h, flags & FL_VERBOSE); putchar('\n'); } if (ofmt == QOF_XML) |