dos_list_table(cxt, xtra);
}
-void fill_bounds(sector_t *first, sector_t *last)
-{
- int i;
- struct pte *pe = &ptes[0];
- struct partition *p;
-
- for (i = 0; i < partitions; pe++,i++) {
- p = pe->part_table;
- if (!p->sys_ind || IS_EXTENDED (p->sys_ind)) {
- first[i] = 0xffffffff;
- last[i] = 0;
- } else {
- first[i] = get_partition_start(pe);
- last[i] = first[i] + get_nr_sects(p) - 1;
- }
- }
-}
-
static void verify(struct fdisk_context *cxt)
{
if (warn_geometry(cxt))
extern void print_menu(struct fdisk_context *cxt, enum menutype menu);
extern void print_partition_size(struct fdisk_context *cxt, int num, sector_t start, sector_t stop, int sysid);
-extern void fill_bounds(sector_t *first, sector_t *last);
-
extern char *partition_type(struct fdisk_context *cxt, unsigned char type);
extern char read_chars(struct fdisk_context *cxt, char *mesg);
extern int warn_geometry(struct fdisk_context *cxt);
return start;
}
+static void fill_bounds(sector_t *first, sector_t *last)
+{
+ int i;
+ struct pte *pe = &ptes[0];
+ struct partition *p;
+
+ for (i = 0; i < partitions; pe++,i++) {
+ p = pe->part_table;
+ if (!p->sys_ind || IS_EXTENDED (p->sys_ind)) {
+ first[i] = 0xffffffff;
+ last[i] = 0;
+ } else {
+ first[i] = get_partition_start(pe);
+ last[i] = first[i] + get_nr_sects(p) - 1;
+ }
+ }
+}
+
static int add_partition(struct fdisk_context *cxt, int n, struct fdisk_parttype *t)
{
char mesg[256]; /* 48 does not suffice in Japanese */