Lines Matching refs:sectorsize
88 int sectorsize; /* bytes/sector */ variable
169 rval = expand_number_int(optarg, §orsize); in main()
170 if (rval < 0 || sectorsize <= 0) in main()
334 if (sectorsize == 0) in main()
335 sectorsize = 512; in main()
339 if (sectorsize == 0) in main()
340 if (ioctl(disk.d_fd, DIOCGSECTORSIZE, §orsize) == -1) in main()
341 sectorsize = 0; /* back out on error for safety */ in main()
342 if (sectorsize && ioctl(disk.d_fd, DIOCGMEDIASIZE, &mediasize) != -1) in main()
343 getfssize(&fssize, special, mediasize / sectorsize, reserved); in main()
366 if (sectorsize == 0) in main()
367 sectorsize = lp->d_secsize; in main()
375 if (sectorsize <= 0) in main()
378 fsize = MAX(DFL_FRAGSIZE, sectorsize); in main()
389 realsectorsize = sectorsize; in main()
390 if (sectorsize != DEV_BSIZE) { /* XXX */ in main()
391 int secperblk = sectorsize / DEV_BSIZE; in main()
393 sectorsize = DEV_BSIZE; in main()
434 1 /* labelsoffset */ * sectorsize), in getdisklabel()