mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
dump: don't fail if multi-file dumps don't all contain quota info
When xfsdump is making multi-file dumps, the quota information are written into the last dump file. However, the multi-file restore script (as written) expects to see quota information restored by every dump file and fails. This is silly, so fix it. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Eryu Guan <guaneryu@gmail.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
committed by
Eryu Guan
parent
9f07f7a016
commit
7bbc93e335
+6
-3
@@ -1432,16 +1432,19 @@ _check_quota()
|
||||
print "Found extra:", $0
|
||||
}
|
||||
next
|
||||
}
|
||||
$0 ~ "Restore Status: INCOMPLETE" {
|
||||
incomplete = 1
|
||||
}
|
||||
{ print }
|
||||
END {
|
||||
if (uquota && !found_uquota) {
|
||||
if (uquota && !found_uquota && !incomplete) {
|
||||
print "Missing user quota msg:", usermsg
|
||||
}
|
||||
if (gquota && !found_gquota) {
|
||||
if (gquota && !found_gquota && !incomplete) {
|
||||
print "Missing group quota msg:", groupmsg
|
||||
}
|
||||
if (pquota && !found_pquota) {
|
||||
if (pquota && !found_pquota && !incomplete) {
|
||||
print "Missing project quota msg:", projectmsg
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user