Home
last modified time | relevance | path

Searched refs:lbsize (Results 1 – 3 of 3) sorted by relevance

/freebsd/lib/libc/gen/
H A Dgetttyent.c44 static size_t lbsize; variable
129 if (!fgets(p = line, lbsize, tf)) in getttyent()
134 lbsize += MALLOCCHUNK; in getttyent()
135 if ((p = realloc(line, lbsize)) == NULL) { in getttyent()
140 if (!fgets(&line[i], lbsize - i, tf)) in getttyent()
264 lbsize = MALLOCCHUNK; in setttyent()
/freebsd/sys/contrib/openzfs/lib/libefi/
H A Drdwr_efi.c160 read_disk_info(int fd, diskaddr_t *capacity, uint_t *lbsize) in read_disk_info() argument
171 *lbsize = (uint_t)sector_size; in read_disk_info()
336 uint_t lbsize = 0; in efi_alloc_and_init() local
343 if (read_disk_info(fd, &capacity, &lbsize) != 0) in efi_alloc_and_init()
357 nblocks = NBLOCKS(nparts, lbsize); in efi_alloc_and_init()
358 if ((nblocks * lbsize) < EFI_MIN_ARRAY_SIZE + lbsize) { in efi_alloc_and_init()
360 nblocks = EFI_MIN_ARRAY_SIZE / lbsize + 1; in efi_alloc_and_init()
382 vptr->efi_lbasize = lbsize; in efi_alloc_and_init()
457 uint_t lbsize; in efi_ioctl() local
463 if (read_disk_info(fd, &capacity, &lbsize) == -1) { in efi_ioctl()
[all …]
/freebsd/sys/fs/unionfs/
H A Dunion_vfsops.c473 uint64_t lbsize; in unionfs_statfs() local
493 lbsize = mstat->f_bsize; in unionfs_statfs()
510 if (mstat->f_bsize != lbsize) in unionfs_statfs()
511 sbp->f_blocks = ((off_t)sbp->f_blocks * lbsize) / in unionfs_statfs()