Home | History | Annotate | Download | only in pending

Lines Matching refs:temp

225   uint32_t temp;
228 temp = (inodes + TT.groups - 1) / TT.groups;
230 return ((temp + inodes - 1)/inodes)*inodes;
237 uint32_t temp;
241 for (temp = 0; temp < 4; temp++) if (TT.blocksize == 1024<<temp) break;
242 if (temp==4) error_exit("bad blocksize");
243 sb->log_block_size = sb->log_frag_size = SWAP_LE32(temp);
249 temp = (TT.blocks * (uint64_t)TT.reserved_percent) / 100;
250 sb->r_blocks_count = SWAP_LE32(temp);
264 temp = TT.inodespg*TT.groups - INODES_RESERVED;
265 if (temp < TT.treeinodes) error_exit("Not enough inodes.\n");
266 sb->free_inodes_count = SWAP_LE32(temp - TT.treeinodes);
366 int temp;
392 if (sizeof(that->st.st_size) > 4) temp = 32;
393 else temp = 0;
394 if (temp) in->dir_acl = SWAP_LE32(that->st.st_size >> temp);
411 int i, temp;
420 temp = O_RDWR|O_CREAT;
421 } else temp = O_RDWR;
427 TT.fsfd = xcreate(*toys.optargs, temp, 0777);
476 temp = TT.treeblocks;
478 for (i = 0; i<TT.groups; i++) temp += group_overhead(i);
481 if (TT.blocks < temp) error_exit("Not enough space.\n");
484 if (temp <= TT.groups * TT.blockbits) {
485 TT.blocks = temp;
490 TT.freeblocks = TT.blocks - temp;
523 temp = TT.blocksize - sizeof(struct ext2_superblock);
524 if (!i && TT.blocksize > 1024) temp -= 1024;
526 xwrite(TT.fsfd, toybuf, temp);
542 temp
543 if (!i) temp -= INODES_RESERVED;
544 if (temp > treeinodes) {
545 treeinodes -= temp;
546 temp = 0;
548 temp -= treeinodes;
551 bg[slot].free_inodes_count = SWAP_LE16(temp);
554 temp = TT.inodespg/(TT.blocksize/sizeof(struct ext2_inode)) + 2;
555 temp = end-used-temp;
556 if (temp > treeblocks) {
557 treeblocks -= temp;
558 temp = 0;
560 temp -= treeblocks;
563 bg[slot].free_blocks_count = SWAP_LE32(temp);
583 temp = TT.treeblocks - usedblocks;
584 if (temp) {
585 if (end-start > temp) temp = end-start;
586 bits_set(toybuf, start, temp);
595 temp = TT.treeinodes - usedinodes;
596 if (temp) {
597 if (slot-j > temp) temp = slot-j;
598 bits_set(toybuf, j, temp);