Home
last modified time | relevance | path

Searched refs:secsz (Results 1 – 9 of 9) sorted by relevance

/illumos-gate/usr/src/boot/libsa/zfs/
H A Dzfs.c394 head = offset % secsz; in vdev_read()
400 full_sec_size -= secsz; in vdev_read()
402 full_sec_size -= secsz; in vdev_read()
421 if (res != secsz) { in vdev_read()
433 if (res != secsz) { in vdev_read()
451 if (res != secsz) { in vdev_read()
483 head = offset % secsz; in vdev_write()
608 unsigned secsz; member
618 offset * ppa->secsz, buf, blocks * ppa->secsz)); in zfs_diskread()
666 pa.secsz = ppa->secsz; in zfs_probe_partition()
[all …]
/illumos-gate/usr/src/cmd/hal/probing/volume/
H A Dprobe-volume.c131 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 Dfsutils.c113 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 Dfsutils.h22 boolean_t find_dos_drive(int fd, int num, uint_t secsz, off_t *offset);
/illumos-gate/usr/src/cmd/fstyp/
H A Dfstyp.c307 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 Ddefect.c494 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 Ddefect.h132 int deflist_size(int secsz, int sz);
/illumos-gate/usr/src/boot/i386/gptzfsboot/
H A Dzfsboot.c684 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 Delfdump.c273 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()