Searched refs:sec_sz (Results 1 - 1 of 1) sorted by relevance

/osnet-11/usr/src/lib/libfdisk/common/
H A Dlibfdisk.c288 int sec_sz = fdisk_get_disk_geom(epp, PHYSGEOM, SSIZE); local
299 if ((buf = calloc(1, sec_sz)) == NULL) {
308 label_offset = (part_start + DK_LABEL_LOC) * sec_sz;
314 if ((rval = read(epp->dev_fd, buf, sec_sz)) < sec_sz) {
327 linux_swap_magic = buf + sec_sz - LINUX_SWAP_MAGIC_LENGTH;
331 seek_offset = linux_pg_size/sec_sz - 1;
333 seek_offset *= sec_sz;
340 if ((rval = read(epp->dev_fd, buf, sec_sz)) < sec_sz) {
[all...]

Completed in 15 milliseconds