Lines Matching refs:quotatype
120 int i, quotatype, range, tmpfd;
132 quotatype = USRQUOTA;
151 quotatype = GRPQUOTA;
157 quotatype = USRQUOTA;
234 if ((protoid = getentry(protoname, quotatype)) == -1)
236 protoprivs = getprivs(protoid, quotatype, fspath);
266 if ((id = getentry(buf, quotatype)) < 0)
273 curprivs = getprivs(id, quotatype,
290 if ((protoprivs = getprivs(0, quotatype, fspath)) != NULL) {
291 if (writetimes(protoprivs, tmpfd, quotatype) != 0 &&
301 if ((id = getentry(*argv, quotatype)) == -1)
303 if ((curprivs = getprivs(id, quotatype, fspath)) == NULL)
305 if (writeprivs(curprivs, tmpfd, *argv, quotatype) == 0)
337 getentry(const char *name, int quotatype)
344 switch(quotatype) {
358 warnx("%d: unknown quota type", quotatype);
370 getprivs(long id, int quotatype, char *fspath)
385 if ((qf = quota_open(fs, quotatype, O_CREAT|O_RDWR)) == NULL) {
474 writeprivs(struct quotause *quplist, int outfd, char *name, int quotatype)
483 fprintf(fd, "Quotas for %s %s:\n", qfextension[quotatype], name);
688 writetimes(struct quotause *quplist, int outfd, int quotatype)
699 qfextension[quotatype]);