- $AWK_PROG -v uquota=$uquota -v gquota=$gquota '
- /Only in RESTORE_DIR: xfsdump_quotas_group/ {
- found_gquota = 1
- if (!gquota) {
- print "Found extra:", $0
- }
- next
- }
- /Only in RESTORE_DIR: xfsdump_quotas/ {
- found_uquota = 1
- if (!uquota) {
- print "Found extra:", $0
- }
- next
- }
- { print }
- END {
- if (uquota && !found_uquota) {
- print "Missing xfsdump_quotas msg"
- }
- if (gquota && !found_gquota) {
- print "Missing xfsdump_quotas_group msg"
- }
- }
- '
+#
+# Look for the quota file in the output
+# Ensure that it is there if it should be
+# Filter it out so that the output is always the same
+# even with no quotas
+#
+_check_quota_file()
+{
+ _check_quota 'xfsdump_quotas' 'xfsdump_quotas_group'