Lines Matching defs:disk
45 * Program to calculate standard disk partition sizes.
75 * Each array defines a layout for a disk;
77 * covers the physical space on a disk.
87 * Default disk block and disk block fragment
104 * Each disk has some space reserved for a bad sector
166 fprintf(stderr, "%s: unknown disk type\n", *argv);
182 * If disk size was specified explicitly, use specified size.
194 * If disk size was specified, recompute number of cylinders
204 * Figure out if disk is large enough for
217 fprintf(stderr, "%s: disk too small, calculate by hand\n",
223 * Calculate number of cylinders allocated to each disk
226 * (for mixed disk systems).
288 * In case the disk is in the ``in-between'' range
363 static struct disklabel disk;
370 { "sector size", "512", &disk.d_secsize },
371 { "#sectors/track", NULL, &disk.d_nsectors },
372 { "#tracks/cylinder", NULL, &disk.d_ntracks },
373 { "#cylinders", NULL, &disk.d_ncylinders },
380 struct disklabel *dp = &disk;
388 "%s: unknown disk type, want to supply parameters (y/n)? ",
393 fprintf(stderr, "Disk/controller type (%s)? ", dktypenames[1]);
431 fprintf(stderr, "%s: bad disk type\n", buf);
511 (void)fprintf(stderr, "usage: diskpart [-dp] [-s size] disk-type\n");