Lines Matching refs:partition

118 static int a_flag  = 0;		/* set active partition */
120 static int i_flag = 0; /* replace partition data */
122 static int u_flag = 0; /* update partition data */
130 * A list of partition types, probably outdated.
142 [0x09] = "AIX boot partition or Coherent",
155 [0x1b] = "ASUS Recovery partition (NTFS)",
185 [0x81] = "Minix since 1.4b, early Linux partition or Mitac disk manager",
212 [0xE1] = "DOS access or SpeedStor with 12-bit FAT extended partition",
214 [0xE4] = "SpeedStor with 16-bit FAT extended partition < 1024 cyl.",
220 [0xF4] = "SpeedStor large partition",
265 int partition = -1;
310 partition = c - '0';
356 /* Fill flags for the partition. */
419 if (partition == -1)
423 change_part(partition);
426 change_active(partition);
433 printf("\nWe haven't changed the partition table yet. ");
438 if (ok("Should we write new partition table?"))
441 printf("\n-t flag specified -- partition table not written.\n");
556 printf("The data for partition %d is:\n", i);
642 if (!ok("Do you want to change the active partition?"))
647 Decimal("active partition", new, tmp, 0);
649 printf("Active partition number must be in range 1-4."
855 "partition table");
859 warnx("can't read fdisk partition table");
863 warnx("invalid fdisk partition table found");
890 warn("can't write fdisk partition table");
1015 all partition specifications",
1126 int status = 0, partition;
1134 warnx("ERROR line %d: incorrect number of partition args",
1138 partition = command->args[0].arg_val;
1139 if (partition < 1 || partition > 4) {
1140 warnx("ERROR line %d: invalid partition number %d",
1141 current_line_number, partition);
1144 partp = &mboot.parts[partition - 1];
1151 for (i = 1; i < partition; i++) {
1193 * Get out, the partition is marked as unused.
1211 * Can't go past end of partition
1214 "ERROR line %d: unable to adjust start of partition %d to fall on\n\
1216 current_line_number, partition);
1220 "WARNING: adjusting start offset of partition %d\n\
1222 partition, (u_int)partp->dp_start,
1237 "ERROR: could not adjust partition to start on a head boundary\n\
1243 "WARNING: adjusting size of partition %d from %u to %u\n\
1245 partition, (u_int)partp->dp_size, (u_int)adj_size);
1249 warnx("ERROR line %d: size of partition %d is zero",
1250 current_line_number, partition);
1265 int status = 0, partition, i;
1276 partition = command->args[0].arg_val;
1277 if (partition < 1 || partition > 4) {
1278 warnx("ERROR line %d: invalid partition number %d",
1279 current_line_number, partition);
1283 * Reset active partition
1288 partp[partition-1].dp_flag = ACTIVE;
1395 /* Only allow a zero size if the partition is being marked unused. */
1399 warnx("ERROR: size of partition is zero");
1407 warnx("WARNING: partition overlaps with partition table");
1412 warnx("WARNING: partition does not start on a head boundary");
1414 warnx("WARNING: partition does not end on a cylinder boundary");
1427 * Can't go past end of partition
1430 "ERROR: unable to adjust start of partition to fall on a head boundary");
1444 warnx("ERROR: could not adjust partition to start on a head boundary\n\
1451 warnx("WARNING: adjusting start offset of partition to %u",
1456 warnx("WARNING: adjusting size of partition to %u", (u_int)size);