BLOCK_SIZE
if (pread(disk_fd, tbuf, len, blkno * BLOCK_SIZE) < 0)
ref = VirtualAlloc(0, BLOCK_SIZE, MEM_RESERVE, PAGE_NOACCESS);
for (paddr = pstart; paddr < pend; paddr += BLOCK_SIZE) {
if (!VirtualCopy(ref, LPVOID(paddr >> 8), BLOCK_SIZE,
ofs = checkMagicRegion(vaddr_t(ref), BLOCK_SIZE, _page_size);
if (!VirtualFree(ref, BLOCK_SIZE, MEM_DECOMMIT)) {
" seek amount = 1 blocks\n", BLOCK_SIZE);
if (scsi_read(i, lbl_buff, BLOCK_SIZE) == 0)
if (scsi_read(32, lbl_buff, BLOCK_SIZE) == 0) {
if (scsi_write(16, lbl_buff, BLOCK_SIZE) != 0) {
nbufs = BLOCK_ALIGN(bufsize) / BLOCK_SIZE;
ds->ds_buf[i]->db_length = BLOCK_SIZE;
offset += BLOCK_SIZE;
#define BLOCK_ALIGN(a) (((a) + BLOCK_SIZE - 1) & ~(BLOCK_SIZE - 1))
if (scb->datalen && !(scb->datalen % BLOCK_SIZE)) {
"1" (BLOCK_SIZE >> 2),
for (len = BLOCK_SIZE;
"1" (BLOCK_SIZE >> 2),
for (len = BLOCK_SIZE;
scb->datalen -= BLOCK_SIZE;