Lines Matching defs:sectorsize
326 u_int sectorsize;
330 error = ioctl(dfd, DIOCGSECTORSIZE, §orsize);
332 sectorsize = 512;
354 sectorsize, nkey);
375 sbuf = malloc(gl->sectorsize);
376 memset(sbuf, 0, gl->sectorsize);
377 offset = (gl->lsector[key] & ~(gl->sectorsize - 1));
381 i = write(dfd, sbuf, gl->sectorsize);
383 if (i != (int)gl->sectorsize)
397 sbuf = malloc(gl->sectorsize);
405 off[0] &= (gl->sectorsize - 1);
406 if (off[0] + G_BDE_LOCKSIZE > gl->sectorsize)
412 off[0] += (gl->lsector[key] & ~(gl->sectorsize - 1));
428 i = read(dfd, sbuf, gl->sectorsize);
429 if (i != (int)gl->sectorsize)
435 i = write(dfd, sbuf, gl->sectorsize);
436 if (i != (int)gl->sectorsize)
445 random_bits(sbuf, gl->sectorsize);
451 q = sbuf + (off[0] % gl->sectorsize);
457 offset = gl->lsector[key] & ~(gl->sectorsize - 1);
461 i = write(dfd, sbuf, gl->sectorsize);
462 if (i != (int)gl->sectorsize)
474 printf("ss = %jd\n", (intmax_t)gl->sectorsize);
585 gl->sectorsize = sector_size;
634 gl->sector0 = first_sector * gl->sectorsize;
641 gl->sectorN = (last_sector + 1) * gl->sectorsize;
646 o &= ~(gl->sectorsize - 1);
665 o &= ~(gl->sectorsize - 1);