#ifndef _LQUOTA_INTERNAL_H
#define _LQUOTA_INTERNAL_H
-/*
-static inline char *qtype_name(int qtype)
-{
- switch (qtype) {
- case USRQUOTA:
- return "usr";
- case GRPQUOTA:
- return "grp";
- case PRJQUOTA:
- return "prj";
- break;
- }
- return "unknown";
-}
-*/
-
#define RES_NAME(res) ((res) == LQUOTA_RES_MD ? "md" : "dt")
#define QIF_IFLAGS (QIF_INODES | QIF_ITIME | QIF_ILIMITS)
return LQUOTA_PRJ_OID;
}
- LASSERTF(0, "invalid quota type: %d", qtype);
+ /* should not come here, just make compile happy */
return LQUOTA_USR_OID;
}
return QUOTA_FL_OVER_PRJQUOTA;
}
- LASSERTF(0, "invalid quota type: %d", qtype);
+ /* should not come here, just make compile happy */
return QUOTA_FL_OVER_USRQUOTA;
}