Lines Matching defs:block

64  *	bsize - block size
120 * The following two constants set the default block and fragment sizes.
152 * block worth of data blocks.
267 * is limited by the fact that cylinder groups are at most one block.
276 /* block map */ howmany((fs)->fs_cpg * (fs)->fs_spc / NSPF(fs), NBBY))
281 * least an equal amount of space for the block map.
288 * Same as MAXIpG, but parameterized by the block size (b) and the
290 * cylinder group overhead block that is used for the inode map. So for
292 * cylinder group overhead block can be dedicated to the inode map.
317 #define BLOCK 1 /* block in aiowait */
318 #define NOBLOCK 0 /* don't block in aiowait */
394 static aio_trans *wait_for_write(int block);
493 long bbsize = BBSIZE; /* boot block size */
509 long bsize = DESBLKSIZE; /* filesystem block size */
844 * - set the file system block size (fs_bsize). Although
851 * value of the file system block size. Since the
853 * block, and the number of frags in the file system
854 * has to fit into 31 bits, the file system block size
895 * * The cylinder group overhead block, which
897 * within one file system block.
900 * group overhead block.
902 * within the available space in the super block.
1041 * Settle the file system block size first, since it's a fixed
1050 gettext("block size must be a power of 2, not %ld\n"),
1247 * 32K based on max block size of 64K, and rotational layout
1248 * test of nsect <= (256 * sectors/block). Current block size
1272 "fragment size %ld is too small, minimum with block size %ld is %ld\n"),
1294 "WARNING: filesystem block size (%ld) is smaller than "
1402 * conditions (the filesystem is mounted, the free block count is
1448 * If we found the block device name,
1538 * Verify that its last block can actually be accessed.
1635 "fragment size %d is too small, minimum with block size %d is %d\n"),
1647 * Compute the super-block, cylinder group, and inode blocks.
1649 * For example, on an 8K/1K (block/fragment) system, fs_sblkno is 16,
1651 * important: only 1 FS block is allocated for the cg struct (fragment
1690 * for block maps
1697 * Make sure the cg struct fits within the file system block.
1698 * Use larger block sizes until it fits
1720 * filesystem block!
1724 "There is no block size that can support this disk\n"));
1751 gettext("With a block size of %d %s %lu\n"),
1797 "This requires the block size to be changed from %ld to %d\n"
1803 "This requires the block size to be changed from %ld to %d\n"),
1848 * Must insure there is enough space to hold block map.
1850 * filesystem block.
1902 * of the file system block, fs_bsize. The amount of space
1905 * block size of the file system. The size increases if sectors per
1938 "Warning: insufficient space in super block for\n"
1978 * (e.g., more than 16384 cylinders for an 8K filesystem block), it
2034 * fill in remaining fields of the super block
2039 * cgdmin, the first data block.
2122 "super-block backups (for fsck -F ufs -o b=#) at:\n"));
2233 "\nsuper-block backups for last 10 cylinder groups at:\n"));
2309 * then write out the super-block.
2338 * systems, just write out the super block to the last ten
2504 diskaddr_t dlower; /* last data block before cg metadata */
2505 diskaddr_t dupper; /* first data block after cg metadata */
2516 diskaddr_t bno; /* UFS block number (not sector number) */
2529 int rpos; /* rotation position of current block */
2530 int rpos_incr; /* amount to increment rpos per block */
2532 union cgun *icgun; /* local pointer to a cg summary block */
2538 * Determine block bounds for cylinder group.
2539 * Allow space for super block summary information in first
2861 * allocate a block or frag
2884 gettext("internal error: can't find block in cyl 0\n"));
3081 wait_for_write(int block)
3096 resultp = aiowait(block ? NULL : &zero_wait);
3202 * read a block from the file system
3243 * write a block to the file system
3283 * write a block to the file system -- buffered with aio
3340 * write a block to the file system, but break it up into sbsize
3398 * check if a block is available
3424 * take a block out of the map
3450 * put a block into the map
3525 * we will end up computing block numbers etc and dividing by zero
3870 * For an 8K filesystem block, the maximum number of cylinder groups is 16384.
3871 * MAXCSBUFS {32} * 8K {FS block size}
4042 /* get the log allocation block */
4057 /* log allocation block is not okay; check the fs */
4064 /* get the log state block(s) */
4210 "can't check mount point; %s is not a block device\n"),
4277 * read the block of inodes containing inode number ino
4293 * data block
4294 * alloc block
4367 * if this frag belongs to an inode and is not the start of a block
4489 /* Negate the block if its an fallocate'd block */
4584 * Check the allocation of fragments that are to be made part of a csum block.
4613 * the available free space needed to extend the cg summary info block.
4615 * - Try to extend the cg summary block to the required size.
4618 * block, and use it for additional csum structures.
4627 /* fragments by which the csum block can be extended. */
4646 * check how much we can extend the cg summary info block
4655 * build list of frags needed for cg summary info block extension
4708 * given the number of fragments by which the csum block can be grown
4723 * compute how many csum instances are unused in the old csum block.
4725 * group without extending the csum block.
5455 fprintf(stderr, gettext("Could not block SIGINT\n"));
5534 * bsize - file system block size
5543 * of the cylinder group overhead block used for the inode map. The
5545 * overhead block, but it's OK for it to occupy less than one-third
5546 * of the overhead block.
5555 * block. The details of the calculation are:
5559 * proportion of the cylinder group overhead block used for the
5561 * block is used for inode bitmaps; an inode_divisor of 12 means
5562 * that 1/12 of the block is used for inode bitmaps.)
5577 * representable in the frag bitmaps in the cylinder overhead block and the
5583 * (available space in the overhead block) / (size of per-cylinder data)
5585 * The available space in the overhead block =
5598 * adjusting the proportion of the overhead block dedicated to
5600 * group overhead block used for inode maps will decrease
5605 * block is used for inode bitmaps. Then it decreases the proportion
5606 * of the cg overhead block used for inode bitmaps (by increasing