Lines Matching defs:frags
41 * number of frags that can be represented in an int32_t field
498 diskaddr_t fssize_frag; /* file system size in frags */
849 * block, and the number of frags in the file system
875 * algorithm fails to take advantage of smaller frags and
1066 * or equal to bsize, and the number of frags must be less than or
3904 gettext("Too many test frags (%lld); "
4266 * structure that manages the frags we need for extended summary info
4267 * These frags can be:
4277 long frags; /* number of frags */
4283 struct csfrag *csfragino; /* frags belonging to an inode */
4284 struct csfrag *csfragfree; /* frags that are free */
4350 if (frag != cfp->ofrag + cfp->frags)
4352 cfp->frags++;
4363 cfp->frags = 1;
4405 * length "ne" are within the range of frags needed to extend the cylinder
4406 * summary. If so, remove those frags from the "as-yet-unclassified" list
4409 * "ino" is the inode that contains (either directly or indirectly) the frags
4443 daddr32_t frags;
4461 frags = dbtofsb(&sblock, dp->di_blocks);
4463 checkdirect((ino_t)i, &frags, &dp->di_db[0], NDADDR+NIADDR);
4464 for (j = 0; j < NIADDR && frags; ++j) {
4467 checkindirect((ino_t)i, &frags,
4470 checkindirect((ino_t)i, &frags,
4562 * in the csfragino list and has new frags associated with it.
4581 return (cfp->frags);
4631 * build list of frags needed for cg summary info block extension
4640 * add all of the frags that are required to grow the cyl summary to the
4642 * we don't yet know the state of those frags.
4648 * filter free fragments and allocate them. Note that the free frags
4650 * alloccsfragino() for data frags.
4726 int64_t frags;
4746 * build list of frags needed for additional summary information
4751 * add all of the frags that are required to grow the cyl summary to the
4753 * we don't yet know the state of those frags.
4755 for (i = oldfrag, frags = 0; i < newfrag; ++i, ++frags)
4759 * the number of frags that need to be added to the cyl summary
4770 if (frags >= testfrags)
4772 frags++;
4777 * move frags to free or inode lists, depending on owner
4783 * if not all frags can be located, file system must be inconsistent
4791 * allocate the free frags. Note that the free frags must be allocated
4793 * frags.
4797 * allocate extra space for inode frags
4816 * copy the data from old frags to new frags
4821 * fix the inodes to point to the new frags
4826 * We may have moved more frags than we needed. Free them.
4862 freefrags(cfp->nfrag, cfp->frags, cfp->cylno);
4873 freefrags(cfp->ofrag, cfp->frags, cfp->cylno);
4890 * move free frags onto the free-frag list
4909 * copy data from old frags to newly allocated frags
4960 allocfrags(long frags, daddr32_t *fragp, long *cylnop)
4971 if (((fscs+i)->cs_nffree < frags) && ((fscs+i)->cs_nbfree == 0))
4976 if (frags <= bits) {
4977 for (j = 0; j < frags; ++j)
4990 * Allocate space for frags that need to be moved in order to free up space for
4992 * For each frag that needs to be moved (each frag or range of frags in
5008 allocfrags(cfp->frags, &cfp->nfrag, &cfp->cylno);
5020 * allocate the free frags needed for extended summary info
5031 freefrags(daddr32_t frag, long frags, long cylno)
5036 * free frags
5039 for (i = 0; i < frags; ++i) {
5079 * Compute the free blocks/frags info and update the appropriate
5552 * by frag_size and nrpos. The frags in the cylinder group must be
5567 * + frags-per-cylinder/NBBY # number of bytes to represent this