Lines Matching defs:partition

119 static int a_flag  = 0;		/* set active partition */
121 static int i_flag = 0; /* replace partition data */
123 static int u_flag = 0; /* update partition data */
131 * A list of partition types, probably outdated.
143 [0x09] = "AIX boot partition or Coherent",
156 [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");
566 printf("The data for partition %d is:\n", i);
652 if (!ok("Do you want to change the active partition?"))
657 Decimal("active partition", new, tmp, 0);
659 printf("Active partition number must be in range 1-4."
892 "partition table");
896 warnx("can't read fdisk partition table");
900 warnx("invalid fdisk partition table found");
927 warn("can't write fdisk partition table");
1052 all partition specifications",
1163 int status = 0, partition;
1171 warnx("ERROR line %d: incorrect number of partition args",
1175 partition = command->args[0].arg_val;
1176 if (partition < 1 || partition > 4) {
1177 warnx("ERROR line %d: invalid partition number %d",
1178 current_line_number, partition);
1181 partp = &mboot.parts[partition - 1];
1188 for (i = 1; i < partition; i++) {
1230 * Get out, the partition is marked as unused.
1248 * Can't go past end of partition
1251 "ERROR line %d: unable to adjust start of partition %d to fall on\n\
1253 current_line_number, partition);
1257 "WARNING: adjusting start offset of partition %d\n\
1259 partition, (u_int)partp->dp_start,
1274 "ERROR: could not adjust partition to start on a head boundary\n\
1280 "WARNING: adjusting size of partition %d from %u to %u\n\
1282 partition, (u_int)partp->dp_size, (u_int)adj_size);
1286 warnx("ERROR line %d: size of partition %d is zero",
1287 current_line_number, partition);
1302 int status = 0, partition, i;
1313 partition = command->args[0].arg_val;
1314 if (partition < 1 || partition > 4) {
1315 warnx("ERROR line %d: invalid partition number %d",
1316 current_line_number, partition);
1320 * Reset active partition
1325 partp[partition-1].dp_flag = ACTIVE;
1432 /* Only allow a zero size if the partition is being marked unused. */
1436 warnx("ERROR: size of partition is zero");
1444 warnx("WARNING: partition overlaps with partition table");
1449 warnx("WARNING: partition does not start on a head boundary");
1451 warnx("WARNING: partition does not end on a cylinder boundary");
1464 * Can't go past end of partition
1467 "ERROR: unable to adjust start of partition to fall on a head boundary");
1481 warnx("ERROR: could not adjust partition to start on a head boundary\n\
1488 warnx("WARNING: adjusting start offset of partition to %u",
1493 warnx("WARNING: adjusting size of partition to %u", (u_int)size);