Lines Matching refs:sectorsize
98 int sectorsize; /* bytes/sector */
177 rval = expand_number_int(optarg, §orsize);
178 if (rval < 0 || sectorsize <= 0)
341 if (sectorsize == 0)
342 sectorsize = 512;
346 if (sectorsize == 0)
347 if (ioctl(disk.d_fd, DIOCGSECTORSIZE, §orsize) == -1)
348 sectorsize = 0; /* back out on error for safety */
349 if (sectorsize && ioctl(disk.d_fd, DIOCGMEDIASIZE, &mediasize) != -1)
350 getfssize(&fssize, special, mediasize / sectorsize, reserved);
374 if (sectorsize == 0)
375 sectorsize = lp->d_secsize;
383 if (sectorsize <= 0)
386 fsize = MAX(DFL_FRAGSIZE, sectorsize);
394 realsectorsize = sectorsize;
395 if (sectorsize != DEV_BSIZE) { /* XXX */
396 int secperblk = sectorsize / DEV_BSIZE;
398 sectorsize = DEV_BSIZE;
439 1 /* labelsoffset */ * sectorsize),