Lines Matching refs:id
441 u_long id, lastid, highid = 0;
451 for (id = 0; id <= lastid; id++) {
452 if (quota_read(qf, &dqbuf, id) < 0)
454 if ((fup = lookup(id, type)) == NULL)
459 highid = id;
466 printchanges(fsname, type, &dqbuf, fup, id);
469 (void) quota_write_usage(qf, &dqbuf, id);
479 for (id = 0; id < FUHASH; id++) {
480 for (fup = fuhead[type][id]; fup != NULL; fup = fup->fu_next) {
539 * Lookup an id of a specific type.
542 lookup(u_long id, int type)
546 for (fup = fuhead[type][id & (FUHASH-1)]; fup != 0; fup = fup->fu_next)
547 if (fup->fu_id == id)
553 * Add a new file usage id if it does not already exist.
556 addid(u_long id, int type, char *name, const char *fsname)
561 if ((fup = lookup(id, type)) != NULL)
569 fhp = &fuhead[type][id & (FUHASH - 1)];
572 fup->fu_id = id;
576 (void)sprintf(fup->fu_name, "%lu", id);
581 type == USRQUOTA ? 'u' : 'g', id);
693 struct fileusage *fup, u_long id)
700 (void)printf("%-8lu fixed ", id);