Lines Matching defs:int
69 static int fd;
75 static int smallio;
78 static int cgblksz;
81 static int search[] = SBLOCKSEARCH;
128 static unsigned int *blkmove;
129 static unsigned int *inomove;
160 int is_ufs2 = 0;
161 int needswap = 0;
162 int verbose = 0;
163 int progress = 0;
184 static int
197 readat(off_t blkno, void *buf, int size)
206 int left; /* bytes left to go */
207 int n; /* number to do this time around */
208 int rv; /* syscall return value */
223 int rv;
237 writeat(off_t blkno, const void *buf, int size)
245 int left; /* bytes left to go */
246 int n; /* number to do this time around */
247 int rv; /* syscall return value */
262 int rv;
289 (unsigned long int) nb, tag);
303 (unsigned long int) nb, tag);
321 (unsigned long int) nb, tag);
356 set_bits(unsigned char *bitvec, unsigned int base, unsigned int n)
384 clr_bits(unsigned char *bitvec, int base, int n)
409 static int
410 bit_is_set(unsigned char *bitvec, int bit)
417 static int
418 bit_is_clr(unsigned char *bitvec, int bit)
430 static int
431 blk_is_set(unsigned char *bitvec, int blkbase, int blkfrags)
433 unsigned int mask;
444 static int
445 blk_is_clr(unsigned char *bitvec, int blkbase, int blkfrags)
447 unsigned int mask;
470 int i; /* Generic loop index */
471 int n; /* Generic count */
472 int start; /* start of cg maps */
656 static int
657 find_freespace(unsigned int nfrags)
659 static int hand = 0; /* hand rotates through all frags in the fs */
660 int cgsize; /* size of the cg hand currently points into */
662 int fwc; /* frag-within-cg number of frag hand points
664 unsigned int run; /* length of run of free frags seen so far */
665 int secondpass; /* have we wrapped from end of fs to
710 static int
713 static int hand = 0; /* hand rotates through all frags in fs */
715 int fwc; /* frag-within-cg number of frag hand points
717 int cgsize; /* size of cg hand points into */
718 int secondpass; /* have we wrapped from end to beginning? */
753 static int
756 static int hand = 0; /* hand rotates through all inodes in fs */
760 int secondpass; /* have we wrapped from end to beginning? */
791 free_frag(int fno)
793 int cgn;
804 alloc_frag(int fno)
806 int cgn;
822 int nold; /* # frags in old csum info */
823 int ntot; /* # frags in new csum info */
824 int nnew; /* ntot-nold */
825 int newloc; /* new location for csum info, if necessary */
826 int i; /* generic loop index */
827 int j; /* generic loop index */
828 int f; /* "from" frag number, if moving */
829 int t; /* "to" frag number, if moving */
830 int cgn; /* cg number, used when shrinking */
937 static int
938 makegeometry(int chatter)
969 (unsigned long int) FFS_FSBTODB(newsb, newsb->fs_size));
1079 map_inodes(void (*fn) (union dinode * di, unsigned int, void *arg),
1080 int ncg, void *cbarg) {
1081 int i;
1082 int ni;
1099 typedef void (*mark_callback_t) (off_t blocknum, unsigned int nfrags,
1100 unsigned int blksize, int opcode);
1105 static int
1108 int sz;
1109 int nb;
1128 markiblk(mark_callback_t fn, union dinode * di, off_t bn, off_t o, int lev)
1130 int i;
1171 * (*fn)(unsigned int blkno, unsigned int nf, unsigned int nb, int op)
1183 int b; /* index within di_db[] and di_ib[] arrays */
1205 dblk_callback(union dinode * di, unsigned int inum, void *arg)
1232 map_data_blocks(mark_callback_t fn, int ncg)
1242 int i;
1255 int imax, ino, j;
1322 mark_move(unsigned int from, unsigned int to, unsigned int n)
1332 fragmove(struct cg * cg, int64_t base, unsigned int start, unsigned int n)
1334 unsigned int i;
1335 int run;
1343 int off;
1369 evict_data(struct cg * cg, unsigned int minfrag, int nfrag)
1380 int n;
1392 int off;
1439 int i;
1440 int run;
1441 int maxrun;
1477 static int
1478 movemap_blocks(int32_t * vec, int n)
1480 int rv;
1492 moveblocks_callback(union dinode * di, unsigned int inum, void *arg)
1527 moveindir_callback(off_t off, unsigned int nfrag, unsigned int nbytes,
1528 int kind)
1530 unsigned int i;
1564 int i;
1580 int i, j, k, ni, m;
1644 int inum;
1645 int fi;
1676 unsigned int i;
1677 unsigned int ni;
1691 static int
1692 update_dirents(char *buf, int nb)
1694 int rv;
1718 update_dir_data(off_t bn, unsigned int size, unsigned int nb, int kind)
1733 dirmove_callback(union dinode * di, unsigned int inum, void *arg)
1811 int oldcgsize;
1812 int newcgsize;
1826 int slop;
1865 rescan_blkmaps(int cgn)
1869 int b;
1870 int blkfree;
1871 int blkrun;
1872 int fragrun;
1873 int fwb;
1983 rescan_inomaps(int cgn)
1986 int inum;
2094 static int
2142 int
2143 main(int argc, char **argv)
2145 int ch;
2146 int CheckOnlyFlag;
2147 int ExpertFlag;
2148 int SFlag;
2206 fgets(reply, (int)sizeof(reply), stdin);
2272 (int) oldsb->fs_ipg, (int) FFS_INOPB(oldsb));