/illumos-gate/usr/src/boot/libsa/zfs/ |
H A D | zfs.c | 350 unsigned secsz, do_tail_read; in vdev_read() local 358 ret = ioctl(fd, DIOCGSECTORSIZE, &secsz); in vdev_read() 393 start_sec = offset / secsz; in vdev_read() 394 head = offset % secsz; in vdev_read() 395 total_size = roundup2(head + bytes, secsz); in vdev_read() 397 do_tail_read = ((tail > 0) && (head + bytes > secsz)); in vdev_read() 400 full_sec_size -= secsz; in vdev_read() 402 full_sec_size -= secsz; in vdev_read() 405 if ((head > 0) || do_tail_read || bytes < secsz) { in vdev_read() 406 bouncebuf = malloc(secsz); in vdev_read() [all …]
|
/illumos-gate/usr/src/cmd/hal/probing/volume/ |
H A D | probe-volume.c | 131 size_t secsz = ISO_SECTOR_SIZE; in hsfs_contents() local 144 readoff = probe_offset + ISO_VOLDESC_SEC * secsz; in hsfs_contents() 145 if (pread (fd, buf, secsz, readoff) != secsz) { in hsfs_contents() 152 readoff += secsz; in hsfs_contents() 153 if (pread (fd, buf, secsz, readoff) != secsz) { in hsfs_contents() 171 readoff = probe_offset + ptbl_lbn * secsz; in hsfs_contents() 172 if (pread (fd, buf, secsz, readoff) != secsz) { in hsfs_contents() 182 if (reloff >= secsz) { in hsfs_contents() 183 readoff += secsz; in hsfs_contents() 184 if (pread (fd, buf, secsz, readoff) != secsz) { in hsfs_contents() [all …]
|
/illumos-gate/usr/src/cmd/hal/utils/ |
H A D | fsutils.c | 113 walk_partitions(int fd, int startsec, uint_t secsz, in walk_partitions() argument 129 if (pread(fd, buf, bufsize, (off_t)sec * secsz) != bufsize) { in walk_partitions() 183 find_dos_drive(int fd, int num, uint_t secsz, off_t *offset) in find_dos_drive() argument 190 walk_partitions(fd, 0, secsz, find_dos_drive_cb, &p); in find_dos_drive() 192 *offset = (off_t)p.r_relsect * secsz; in find_dos_drive() 210 get_num_dos_drives(int fd, uint_t secsz) in get_num_dos_drives() argument 214 walk_partitions(fd, 0, secsz, get_num_dos_drives_cb, &count); in get_num_dos_drives()
|
H A D | fsutils.h | 22 boolean_t find_dos_drive(int fd, int num, uint_t secsz, off_t *offset);
|
/illumos-gate/usr/src/cmd/fstyp/ |
H A D | fstyp.c | 307 walk_partitions(int fd, uint32_t startsec, off_t secsz, in walk_partitions() argument 323 if (pread(fd, buf, bufsize, (off_t)sec * secsz) != bufsize) { in walk_partitions() 379 off_t secsz; in find_dos_drive() local 390 secsz = DEV_BSIZE; in find_dos_drive() 392 secsz = mi.dki_lbsize; in find_dos_drive() 395 walk_partitions(fd, 0, secsz, find_dos_drive_cb, &p); in find_dos_drive() 397 *offset = secsz * (off_t)p.r_relsect; in find_dos_drive()
|
/illumos-gate/usr/src/cmd/format/ |
H A D | defect.c | 494 deflist_size(int secsz, int sz) in deflist_size() argument 498 if (secsz == 0) { in deflist_size() 499 secsz = SECSIZE; in deflist_size() 503 secsz - 1) / secsz) : 1; in deflist_size()
|
H A D | defect.h | 132 int deflist_size(int secsz, int sz);
|
/illumos-gate/usr/src/boot/i386/gptzfsboot/ |
H A D | zfsboot.c | 684 uint_t secsz; member 696 size_t size = ppa->secsz * blocks; in parttblread() 698 lseek(ppa->fd, offset * ppa->secsz, SEEK_SET); in parttblread() 743 pa.secsz = ppa->secsz; in probe_partition() 745 ppa->secsz, parttblread); in probe_partition() 806 ret = ioctl(pa.fd, DIOCGSECTORSIZE, &pa.secsz); in probe_disk() 808 table = ptable_open(&pa, mediasz / pa.secsz, pa.secsz, in probe_disk()
|
/illumos-gate/usr/src/cmd/sgs/elfdump/common/ |
H A D | elfdump.c | 273 Word relndx, Sym *syms, char *secstr, size_t secsz, const char *file) in relsymname() argument 295 (void) snprintf(secstr, secsz, MSG_INTL(MSG_STR_SECTION), in relsymname() 4767 size_t secsz = ++symname - secname; in shdr_cache() local 4771 strsz = secsz + strlen(symname) + 1; in shdr_cache() 4784 EC_WORD(secsz), secname, symname); in shdr_cache()
|