Lines Matching defs:blocks

33                size: Number of blocks (1024-102400)
63 -E stride= Set RAID stripe size (in blocks)
90 unsigned blocks; // Total blocks in the filesystem.
91 unsigned freeblocks; // Free blocks in the filesystem.
94 unsigned blockbits; // Bits per block. (Also blocks per group.)
109 uint32_t r_blocks_count; // Reserved blocks count
110 uint32_t free_blocks_count; // Free blocks count
130 uint16_t def_resuid; // Default uid for reserved blocks
131 uint16_t def_resgid; // Default gid for reserved blocks
143 uint8_t prealloc_blocks; // Nr of blocks to try to preallocate
166 uint16_t free_blocks_count; // How many free blocks in this group?
190 uint32_t blocks; // Blocks count
193 uint32_t block[15]; // Pointers to blocks
250 // Calculate data blocks plus index blocks needed to hold a file.
257 // Fill out index blocks in inode.
262 // Direct index blocks
264 // Singly indirect index blocks
266 // Doubly indirect index blocks
273 // Account for direct, singly, doubly, and triply indirect index blocks
296 // Recursively calculate the number of blocks used by each inode in the tree.
297 // Returns blocks used by this directory, assigns bytes used to *size.
302 long blocks;
315 TT.treeblocks += blocks = file_blocks_used(*size, 0);
318 return blocks;
363 // Round up to fill complete inode blocks.
383 sb->blocks_count = SWAP_LE32(TT.blocks);
385 temp = (TT.blocks * (uint64_t)TT.reserved_percent) / 100;
440 // Number of blocks used in group by optional superblock/group list backup.
447 // How many blocks does the group descriptor table take up?
459 // Number of blocks used in group to store superblock/group/inode list
506 // If that inode needs data blocks allocated to it.
510 // TODO: teach this about indirect blocks.
512 // If we just jumped into a new group, skip group overhead blocks.
537 in->blocks = SWAP_LE32(that->st.st_blocks);
556 sscanf(toys.optargs[1], "%u", &TT.blocks);
572 if (!TT.blocks) TT.blocks = length/TT.blocksize;
587 // blocks, but not when finding inodes. The tree's parent pointers don't
603 TT.inodes = (TT.blocks * (uint64_t)TT.blocksize) / TT.bytes_per_inode;
606 // If we're generating a filesystem and have no idea how many blocks it
608 // groups, and loop until this is enough groups to store this many blocks.
609 if (!TT.blocks) TT.groups = (TT.treeblocks/TT.blockbits)+1;
610 else TT.groups = div_round_up(TT.blocks, TT.blockbits);
617 if (TT.blocks) {
618 if (TT.blocks < temp) error_exit("Not enough space.\n");
622 TT.blocks = temp;
627 TT.freeblocks = TT.blocks - temp;
645 if ((i+1)*TT.blockbits > TT.blocks) end = TT.blocks & (TT.blockbits-1);
690 // How many free blocks in this group?
765 // Write data blocks (TODO)