Home | History | Annotate | Download | only in pending

Lines Matching refs:disk

1 /* fdisk.c -  fdisk program to modify partitions on disk.
14 usage: fdisk [-lu] [-C CYLINDERS] [-H HEADS] [-S SECTORS] [-b SECTSZ] DISK
19 -l Show partition table for each DISK, then exit
223 static void read_geometry(struct hd_geometry *disk)
228 disk->heads = geometry.heads;
229 disk->sectors = geometry.sectors;
347 struct hd_geometry disk;
372 disk.heads = disk.sectors = 0;
373 read_geometry(&disk); //CHS values
378 g_sectors = (toys.optflags & FLAG_S && TT.sectors)? TT.sectors : s? s : disk.sectors?disk.sectors : 63;
379 g_heads = (toys.optflags & FLAG_H && TT.heads)? TT.heads : h? h : disk.heads? disk.heads : 255;
384 xprintf("\nThe number of cylinders for this disk is set to %lu.\n"
496 if (check_order()) xprintf("\nPartition table entries are not in disk order");
505 if (mbytes < 10000) xprintf("Disk %s: %lu MB, %llu bytes\n", disk_device, mbytes, bytes);
506 else xprintf("Disk %s: %lu.%lu GB, %llu bytes\n", disk_device, mbytes/1000, (mbytes/100)%10, bytes);
658 //Write the partition details from Buffer to Disk.
1194 xprintf("Disk %s: %lu heads, %lu sectors, %lu cylinders\n\n", disk_device, g_heads, g_sectors, g_cylinders);
1304 "w\twrite table to disk and exit\n"
1321 "w\twrite table to disk and exit\n");
1345 xprintf("\nThe number of cylinders for this disk is set to %lu.\n"