mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
filter out extra quota restore msg on irix
Merge of master-melb:xfs-cmds:23581a by kenmcd. filter out extra quota restore msg on irix
This commit is contained in:
+11
-2
@@ -1318,10 +1318,10 @@ _check_quota()
|
||||
{ print }
|
||||
END {
|
||||
if (uquota && !found_uquota) {
|
||||
print "Missing: ", usermsg
|
||||
print "Missing user quota msg:", usermsg
|
||||
}
|
||||
if (gquota && !found_gquota) {
|
||||
print "Missing: ", groupmsg
|
||||
print "Missing group quota msg:", groupmsg
|
||||
}
|
||||
}
|
||||
'
|
||||
@@ -1353,10 +1353,19 @@ _check_quota_entries()
|
||||
# xfsrestore: user quota information written to ...'
|
||||
# xfsrestore: group quota information written to ...'
|
||||
#
|
||||
# If on IRIX then look for:
|
||||
# xfsrestore: use 'edquota' to restore quotas
|
||||
#
|
||||
_check_quota_dumprestore()
|
||||
{
|
||||
if [ "$HOSTOS" == "IRIX" ]; then
|
||||
_check_quota 'user quota information' \
|
||||
'group quota information' |\
|
||||
sed "/xfsrestore:.*use 'edquota' to restore quotas/d"
|
||||
else
|
||||
_check_quota 'user quota information' \
|
||||
'group quota information'
|
||||
fi
|
||||
}
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user