Home
last modified time | relevance | path

Searched refs:bpsec (Results 1 – 5 of 5) sorted by relevance

/illumos-gate/usr/src/cmd/fs.d/pcfs/fsck/
H A Dfsck_main.c51 size_t bpsec = MINBPS; variable
189 rv = get_media_sector_size(*inFD, &bpsec); in openFS()
196 if (!is_sector_size_valid(bpsec)) { in openFS()
198 gettext("unsupported sector size: %zu\n"), bpsec); in openFS()
204 findPartitionOffset(*inFD, bpsec, suffix)) < 0) { in openFS()
H A Dbpb.c186 if (read(fd, ubpb.buf, bpsec) < bpsec) { in readBPB()
H A Dfsck_pcfs.h171 extern size_t bpsec;
/illumos-gate/usr/src/cmd/fs.d/pcfs/common/
H A Dpcfs_common.c455 findPartitionOffset(int fd, size_t bpsec, char *ldrive) in findPartitionOffset() argument
489 if (read(fd, &mb, bpsec) != (ssize_t)bpsec) { in findPartitionOffset()
553 found = ltohi(part[bootPart].relsect) * bpsec; in findPartitionOffset()
558 found = ltohi(part[primaryPart].relsect) * bpsec; in findPartitionOffset()
590 if (lseek64(fd, nextseek * bpsec, SEEK_SET) < 0 || in findPartitionOffset()
653 found *= bpsec; in findPartitionOffset()
674 found = ltohi(part[extraDrives[driveIndex]].relsect) * bpsec; in findPartitionOffset()
H A Dpcfs_common.h74 extern off64_t findPartitionOffset(int fd, size_t bpsec, char *ldrive);