#
_check_quota()
{
- usermsg=$1
- groupmsg=$2
+ usermsg=$1
+ groupmsg=$2
uquota=0
gquota=0
$here/src/feature -U $SCRATCH_DEV && uquota=1
{ 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
}
}
'
# 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()
{
- _check_quota 'user quota information' \
- 'group quota information'
+ 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
}
#