Lines Matching refs:blocksize
79 long blocksize; in GLOBALS()
118 uint32_t dblocks = (uint32_t)((size+(TT.blocksize-1))/TT.blocksize); in file_blocks_used()
119 uint32_t idx=TT.blocksize/4, iblocks=0, diblocks=0, tiblocks=0; in file_blocks_used()
229 inodes = TT.blocksize/sizeof(struct ext2_inode); in get_inodespg()
241 for (temp = 0; temp < 4; temp++) if (TT.blocksize == 1024<<temp) break; in init_superblock()
252 sb->first_data_block = SWAP_LE32(TT.blocksize == 1024 ? 1 : 0); in init_superblock()
313 used += TT.blocksize - 1; in group_superblock_overhead()
314 used /= TT.blocksize; in group_superblock_overhead()
318 if (!group && TT.blocksize == 1024) used++; in group_superblock_overhead()
329 / (TT.blocksize/sizeof(struct ext2_inode)); in group_overhead()
433 if (!TT.blocksize) TT.blocksize = (length && length < 1<<29) ? 1024 : 4096; in mke2fs_main()
434 TT.blockbits = 8*TT.blocksize; in mke2fs_main()
435 if (!TT.blocks) TT.blocks = length/TT.blocksize; in mke2fs_main()
466 TT.inodes = (TT.blocks * (uint64_t)TT.blocksize) / TT.bytes_per_inode; in mke2fs_main()
511 itable = (TT.inodespg*sizeof(struct ext2_inode))/TT.blocksize; in mke2fs_main()
523 temp = TT.blocksize - sizeof(struct ext2_superblock); in mke2fs_main()
524 if (!i && TT.blocksize > 1024) temp -= 1024; in mke2fs_main()
525 memset(toybuf, 0, TT.blocksize); in mke2fs_main()
535 slot = j % (TT.blocksize/sizeof(struct ext2_group)); in mke2fs_main()
537 if (j) xwrite(TT.fsfd, bg, TT.blocksize); in mke2fs_main()
538 memset(bg, 0, TT.blocksize); in mke2fs_main()
554 temp = TT.inodespg/(TT.blocksize/sizeof(struct ext2_inode)) + 2; in mke2fs_main()
572 xwrite(TT.fsfd, bg, TT.blocksize); in mke2fs_main()
580 memset(toybuf, 0, TT.blocksize); in mke2fs_main()
588 xwrite(TT.fsfd, toybuf, TT.blocksize); in mke2fs_main()
591 memset(toybuf, 0, TT.blocksize); in mke2fs_main()
600 xwrite(TT.fsfd, toybuf, TT.blocksize); in mke2fs_main()
604 slot = j % (TT.blocksize/sizeof(struct ext2_inode)); in mke2fs_main()
606 if (j) xwrite(TT.fsfd, in, TT.blocksize); in mke2fs_main()
607 memset(in, 0, TT.blocksize); in mke2fs_main()
617 xwrite(TT.fsfd, in, TT.blocksize); in mke2fs_main()
624 put_zeroes(TT.blocksize); in mke2fs_main()
629 put_zeroes((end-start) * TT.blocksize); in mke2fs_main()