• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/router/busybox-1.x/util-linux/

Lines Matching refs:partition

72 struct partition {
77 unsigned char sys_ind; /* What partition type */
82 unsigned char size4[4]; /* nr of sectors in partition */
136 static int partitions = 4; /* maximum partition + 1 */
154 static unsigned get_start_sect(const struct partition *p);
155 static unsigned get_nr_sects(const struct partition *p);
158 * per partition table entry data
162 * Each logical partition table entry has two pointers, one for the
163 * partition and one link to the next one.
166 struct partition *part_table; /* points into sectorbuffer */
167 struct partition *ext_pointer; /* points into sectorbuffer */
175 /* DOS partition types */
181 "\x05" "Extended", /* DOS 3.3+ extended partition */
225 "\xfd" "Linux raid autodetect", /* New (2.2.x) raid partition with
239 /* Raw disk label. For DOS-type partition tables the MBR,
266 ((struct partition *)((b) + 0x1be + (n) * sizeof(struct partition)))
307 * return partition name - uses static storage
326 /* devfs kludge - note: fdisk partition names are not supposed
361 static ALWAYS_INLINE struct partition *
535 set_start_sect(struct partition *p, unsigned start_sect)
542 get_start_sect(const struct partition *p)
549 set_nr_sects(struct partition *p, unsigned nr_sects)
556 get_nr_sects(const struct partition *p)
564 static int ext_index; /* the prime extended partition */
614 /* Allocate a buffer and read a partition table sector */
637 * Avoid warning about DOS partitions when no DOS partition was changed.
638 * Here a heuristic "is probably dos partition".
640 * for "is probably nondos partition".
660 puts("d\tdelete a partition");
661 puts("l\tlist known partition types");
662 puts("n\tadd a new partition");
663 puts("o\tcreate a new empty DOS partition table");
664 puts("p\tprint the partition table");
667 puts("t\tchange a partition's system id");
669 puts("v\tverify the partition table");
675 puts("a\tselect bootable partition"); /* sgi flavour */
677 puts("c\tselect sgi swap partition"); /* sgi flavour */
678 puts("d\tdelete a partition");
679 puts("l\tlist known partition types");
680 puts("n\tadd a new partition");
681 puts("o\tcreate a new empty DOS partition table");
682 puts("p\tprint the partition table");
685 puts("t\tchange a partition's system id");
687 puts("v\tverify the partition table");
690 puts("o\tcreate a new empty DOS partition table");
697 puts("d\tdelete a partition");
698 puts("l\tlist known partition types");
699 puts("n\tadd a new partition");
700 puts("o\tcreate a new empty DOS partition table");
701 puts("p\tprint the partition table");
704 puts("t\tchange a partition's system id");
706 puts("v\tverify the partition table");
724 puts("d\tprint the raw data in the partition table");
729 puts("p\tprint the partition table");
733 puts("v\tverify the partition table");
737 puts("b\tmove beginning of data in a partition"); /* !sun */
739 puts("d\tprint the raw data in the partition table");
741 puts("g\tcreate an IRIX (SGI) partition table");/* sgi */
743 puts("p\tprint the partition table");
747 puts("v\tverify the partition table");
750 puts("b\tmove beginning of data in a partition"); /* !sun */
752 puts("d\tprint the raw data in the partition table");
754 puts("g\tcreate an IRIX (SGI) partition table");/* sgi */
756 puts("p\tprint the partition table");
760 puts("v\tverify the partition table");
763 puts("b\tmove beginning of data in a partition"); /* !sun */
765 puts("d\tprint the raw data in the partition table");
767 puts("f\tfix partition order"); /* !sun, !aix, !sgi */
769 puts("g\tcreate an IRIX (SGI) partition table");/* sgi */
772 puts("p\tprint the partition table");
776 puts("v\tverify the partition table");
851 is_cleared_partition(const struct partition *p)
859 clear_partition(struct partition *p)
863 memset(p, 0, sizeof(struct partition));
870 struct partition *p;
947 struct partition *p, *q;
955 printf("Bad offset in primary extended partition\n");
986 "pointer in partition table"
993 "data in partition table"
1027 printf("Omitting empty partition (%d)\n", i+1);
1089 struct partition *p;
1206 "the partition table\n");
1264 "partition table, nor Sun, SGI or OSF "
1298 "partition %d\n", i + 1);
1308 printf("Warning: invalid flag 0x%02x,0x%02x of partition "
1429 printf("Warning: partition %d has empty type\n", i+1);
1443 struct partition *p = pe->part_table;
1452 printf("Selected partition %d\n", pno+1);
1455 printf("No partition is defined yet!\n");
1470 struct partition *p = pe->part_table;
1479 printf("Selected partition %d\n", pno+1);
1503 struct partition *p = pe->part_table;
1506 printf("WARNING: Partition %d is an extended partition\n", i + 1);
1528 struct partition *p = pe->part_table;
1529 struct partition *q = pe->ext_pointer;
1531 /* Note that for the fifth partition (i == 4) we don't actually
1601 struct partition *p;
1604 let the user select a partition, since get_existing_partition()
1605 only works for Linux like partition tables. */
1634 printf("You cannot change a partition into"
1643 printf("Consider leaving partition 3 "
1655 printf("Consider leaving partition 9 "
1657 "partition 11 as entire volume (6)"
1670 printf("Changed system type of partition %d "
1701 check_consistency(const struct partition *p, int partition)
1708 if (!heads || !sectors || (partition >= 4))
1730 "beginnings (non-Linux?):\n", partition + 1);
1738 "endings:\n", partition + 1);
1746 partition + 1);
1773 * Check whether partition entries are ordered by their starting positions.
1774 * Return 0 if OK. Return i if partition i should have been earlier.
1781 const struct partition *p;
1816 * end of partition, and these may still overlap.)
1825 struct partition *pj,*pjj,tmp;
1885 /* partition i should have come earlier, move it */
1887 struct partition *pi, *pk, *pe, pbuf;
1898 memmove(&pbuf, pi, sizeof(struct partition));
1899 memmove(pi, pk, sizeof(struct partition));
1900 memmove(pk, &pbuf, sizeof(struct partition));
1916 const struct partition *p;
1935 /* Heuristic: we list partition 3 of /dev/foo as /dev/foo3,
1937 then the partition is called /dev/foo1p3. */
1983 /* Is partition table in disk order? It need not be, but... */
1984 /* partition table entries are not checked for correct order if this
1996 const struct partition *p;
2026 const struct partition *p;
2070 struct partition *p;
2093 "partition %d\n", i + 1);
2100 printf("Warning: partition %d overlaps "
2101 "partition %d\n", j + 1, i + 1);
2121 printf("Warning: partition %d "
2124 printf("Logical partition %d not entirely in "
2125 "partition %d\n", i + 1, ext_index + 1);
2145 struct partition *p = ptes[n].part_table;
2146 struct partition *q = ptes[ext_index].part_table;
2207 if (n > 4) { /* NOT for fifth partition */
2300 "If you want to add DOS-type partitions, create a new empty DOS partition\n"
2317 printf("You must delete some partition and add "
2318 "an extended partition first\n");
2324 " p primary partition (1-4)\n",
2345 printf("Invalid partition number "
2383 printf("The partition table has been altered!\n\n");
2392 printf("Calling ioctl() to re-read partition table\n");
2396 "WARNING: rereading partition table "
2446 struct partition *p = pe->part_table;
2625 "partition table\n", device);
2648 that look like a partition name (do not end in a digit) */
2689 * fdisk -s [partition] ...
2859 let the user select a partition, since
2861 partition tables */
2916 "partition tables available\n\n");