Lines Matching defs:number

41  * number of frags that can be represented in an int32_t field
42 * (INT_MAX) times the maximum number of sectors per frag. Since
43 * the maximum frag size is MAXBSIZE, the maximum number of sectors
62 * nsect - The number of sectors per track
63 * ntrack - The number of tracks per cylinder
66 * cgsize - The number of disk cylinders per cylinder group.
69 * nbpi - number of data bytes per allocated inode
71 * apc - number of alternates
73 * nrpos - number of rotational positions
74 * maxcontig - maximum number of logical blocks that will be
89 * The following constants set the defaults used for the number
90 * of sectors/track (fs_nsect), and number of tracks/cyl (fs_ntrak).
112 * The maximum number of cylinders in a group depends upon how much
143 * ROTDELAY gives the minimum number of milliseconds to initiate
150 * MAXBLKPG determines the maximum number of data blocks which are
157 * Each file system has a number of inodes statically allocated.
174 * up with minimum rotational latency. NRPOS is the number of rotational
178 #define NRPOS 8 /* number distinct rotational positions */
303 * Used to set the inode generation number. Since both inodes and dinodes
309 * Flags for number()
311 #define ALLOW_PERCENT 0x01 /* allow trailing `%' on number */
314 #define ALLOW_END_ONLY 0x08 /* must be at end of number & suffixes */
316 #define MAXAIO 1000 /* maximum number of outstanding I/O's we'll manage */
408 static uint64_t number(uint64_t d_value, char *param, int flags);
462 * Initialized to an illegal file descriptor number.
469 * constant that can be used by the number parser to check the validity
475 /* Used to indicate to number() that a bogus value should cause us to exit */
479 * INVALIDSBLIMIT is the number of bad backup superblocks that will be
517 long nbpi = NBPI; /* number of bytes per inode */
519 long nrpos = NRPOS; /* number of rotational positions */
678 nsect = number(DFLNSECT, "nsect", 0);
681 ntrack = number(DFLNTRAK, "ntrack", 0);
684 bsize = number(DESBLKSIZE, "bsize", 0);
687 fragsize = number(DESFRAGSIZE,
691 cpg = number(DESCPG, "cgsize", 0);
694 minfree = number(MINFREE, "free",
699 number(-1, "maxcontig", 0);
702 nrpos = number(NRPOS, "nrpos", 0);
705 rps = number(DEFHZ, "rps", 0);
708 nbpi = number(NBPI, "nbpi", 0);
715 apc = number(0, "apc", 0);
718 (void) number(0, "gap", ALLOW_MS1);
722 debug = number(0, "debug", 0);
783 testfrags = number(NO_DEFAULT, "testfrags", 0);
795 * the random number generator to a constant.
853 * block, and the number of frags in the file system
909 * * number of rotational positions (the rotational
936 tmpmaxcontig = number(-1, "maxcontig", 0);
941 nrpos = number(NRPOS, "nrpos", 0);
951 apc = number(0, "apc", 0);
959 nbpi = number(NBPI, "nbpi", 0);
964 rps = number(DEFHZ, "rps", 0);
969 minfree = number(MINFREE, "free", ALLOW_PERCENT);
974 cpg = number(DESCPG, "cgsize", 0);
979 fragsize = number(DESFRAGSIZE, "fragsize", 0);
984 bsize = number(DESBLKSIZE, "bsize", 0);
989 ntrack = number(DFLNTRAK, "ntrack", 0);
994 nsect = number(DFLNSECT, "nsect", 0);
999 fssize_db = number(max_fssize, "size", 0);
1070 * or equal to bsize, and the number of frags must be less than or
1253 * ntrack is the number of tracks per cylinder.
1254 * The ntrack value must be between 1 and the total number of
1818 * Calculate the number of cylinders per group
1875 * Determine number of cylinders and blocks in the file system.
1976 * Compute/validate number of cylinder groups.
1994 "number of cylinders per cylinder group (%d) must be decreased.\n"),
1998 "number of cylinders per cylinder group (%d) must be increased.\n"),
2204 * If the number of cylinder groups was less than 10, all of the
2516 diskaddr_t bno; /* UFS block number (not sector number) */
2517 int cbcylno; /* current cylinder number */
2717 * cylinder number, calculate the offset in the
2872 (void) fprintf(stderr, gettext("cg 0: bad magic number\n"));
2924 (void) fprintf(stderr, gettext("cg 0: bad magic number\n"));
2982 * Limit number of buffers to lesser of MAXBUFMEM's worth
3600 /* number ************************************************************* */
3611 /* Return: converted number */
3616 number(uint64_t d_value, char *param, int flags)
3652 t = number(d_value, param, flags);
3870 * For an 8K filesystem block, the maximum number of cylinder groups is 16384.
3961 errmsg = gettext("Bad superblock; magic number wrong\n");
4277 * read the block of inodes containing inode number ino
4301 long frags; /* number of frags */
4303 ino_t ino; /* inode number */
4587 * Return the number of allocated fragments.
4632 int64_t new_fs_ncg; /* number of cg in the new FS */
4708 * given the number of fragments by which the csum block can be grown
4710 * It is the number of csum instances per fragment multiplied by
4711 * `growth_csum_frags' and the number of fragments per cylinder group.
4782 * reduce the number of data blocks in the file system (fs_dsize) by
4783 * the number of frags that need to be added to the cyl summary
5017 * the csfragino list), allocate a new location and store the frag number
5020 * set the new frag number for that element to 0 and return immediately.
5536 * nbpi - number of bytes of disk space per inode
5537 * nrpos - number of rotational positions
5550 * number of inodes in the file system (file system size is fixed, and
5551 * nbpi is fixed, so the total number of inodes is fixed too). The
5552 * cylinder group has to be small enough so that the number of inodes
5553 * in the cylinder group is less than or equal to the number of bits
5558 * number of inodes that can be in a cylinder group, given the
5564 * Once the number of inodes per cylinder group is known, the
5591 * + frags-per-cylinder/NBBY # number of bytes to represent this