Lines Matching defs:sf
95 static void sortsize(struct data *f, struct data **sf, unsigned int eptnum);
102 struct data *f, **sf;
118 sf = (struct data **)calloc(eptnum, sizeof (struct data *));
119 if (sf == NULL) {
255 * "sf" - array sorted in decreasing file size order, based on "f".
257 sortsize(f, sf, eptnum);
262 newvolume(sf, eptnum, *plimit, *pilimit);
334 while (store(sf, eptnum, order[i], *plimit, *pilimit))
340 while (store(sf, eptnum, (char *)0, *plimit, *pilimit))
366 newvolume(sf, eptnum, *plimit, *pilimit);
391 free(sf);
403 store(struct data **sf, unsigned int eptnum, char *aclass, fsblkcnt_t limit,
413 if (sf[i]->ept->volno || strchr("sldxcbp", sf[i]->ept->ftype))
415 if (aclass && strcmp(aclass, sf[i]->ept->pkg_class))
418 ftemp = nodecount(sf[i]->ept->path);
419 btemp = sf[i]->blks + (ftemp * DIRSIZE);
432 newvolume(sf, eptnum, limit, ilimit);
433 return (store(sf, eptnum, aclass, limit, ilimit));
435 sf[choice]->ept->volno = (char)volno;
437 btotal += sf[choice]->blks + (svnodes * DIRSIZE);
438 allocnode(sf[i]->ept->path);
439 addclass(sf[choice]->ept->pkg_class, volno);
536 newvolume(struct data **sf, unsigned int eptnum, fsblkcnt_t limit,
567 if (sf[i]->ept->volno == volno) {
568 newnodes = nodecount(sf[i]->ept->path);
570 btotal += sf[i]->blks + (newnodes * DIRSIZE);
614 sortsize(struct data *f, struct data **sf, unsigned int eptnum)
623 if (f[i].blks > sf[j]->blks) {
625 sf[k] = sf[k-1];
630 sf[j] = &f[i];