Searched refs:sec_sz (Results 1 – 2 of 2) sorted by relevance
/illumos-gate/usr/src/lib/libfdisk/common/ |
H A D | libfdisk.c | 283 int sec_sz = fdisk_get_disk_geom(epp, PHYSGEOM, SSIZE); in fdisk_is_linux_swap() local 294 if ((buf = calloc(1, sec_sz)) == NULL) { in fdisk_is_linux_swap() 303 label_offset = (part_start + DK_LABEL_LOC) * sec_sz; in fdisk_is_linux_swap() 309 if ((rval = read(epp->dev_fd, buf, sec_sz)) < sec_sz) { in fdisk_is_linux_swap() 322 linux_swap_magic = buf + sec_sz - LINUX_SWAP_MAGIC_LENGTH; in fdisk_is_linux_swap() 326 seek_offset = linux_pg_size/sec_sz - 1; in fdisk_is_linux_swap() 328 seek_offset *= sec_sz; in fdisk_is_linux_swap() 335 if ((rval = read(epp->dev_fd, buf, sec_sz)) < sec_sz) { in fdisk_is_linux_swap()
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | cmlb.c | 2293 int sec_sz = cl->cl_sys_blocksize; local 2300 if ((buf = kmem_zalloc(sec_sz, KM_NOSLEEP)) == NULL) { 2311 sec_sz, tg_cookie); 2328 linux_swap_magic = buf + sec_sz - 10; 2332 seek_offset = linux_pg_size/sec_sz - 1; 2336 rval = DK_TG_READ(cl, buf, seek_offset, sec_sz, tg_cookie); 2357 kmem_free(buf, sec_sz);
|