Searched refs:partition (Results 1 - 25 of 76) sorted by relevance

1234

/osnet-11/usr/src/lib/pybootmgmt/common/bootmgmt/backend/autogen/
H A Dchain.py86 title, disk, partition, active = line.split(':')
89 # partition can be empty, an int or a comma-separated list of
91 if partition.strip() != '':
92 if partition.find(',') != -1:
93 partition = tuple(partition.split(','))
95 partition = int(partition)
97 partition = None
105 if partition i
[all...]
/osnet-11/usr/src/grub/grub2/grub-core/parttool/
H A Dmsdospart.c28 #include <grub/partition.h>
39 {"boot", N_("Make partition active"), GRUB_PARTTOOL_ARG_BOOL},
50 if (dev->disk->partition->offset)
51 return grub_error (GRUB_ERR_BAD_ARGUMENT, "not a primary partition");
53 index = dev->disk->partition->index;
54 part = dev->disk->partition;
55 dev->disk->partition = part->parent;
60 dev->disk->partition = part;
80 dev->disk->partition = part;
87 {"type", N_("Change partition typ
[all...]
/osnet-11/usr/src/grub/grub2/grub-core/kern/
H A Dpartition.c21 #include <grub/partition.h>
32 * Checks that disk->partition contains part. This function assumes that the
33 * start of part is relative to the start of disk->partition. Returns 1 if
34 * disk->partition is null.
40 if (disk->partition == NULL)
43 if (part->start + part->len > disk->partition->len)
47 partname = grub_partition_get_name (disk->partition);
48 grub_dprintf ("partition", "sub-partition %s%d of (%s,%s) ends after parent.\n",
51 grub_util_warn (_("Discarding improperly nested partition (
70 find_func(grub_disk_t dsk, const grub_partition_t partition) argument
166 grub_partition_iterate(struct grub_disk *disk, int (*hook) (grub_disk_t disk, const grub_partition_t partition)) argument
174 part_iterate(grub_disk_t dsk, const grub_partition_t partition) argument
224 grub_partition_get_name(const grub_partition_t partition) argument
[all...]
H A Ddevice.c27 #include <grub/partition.h>
96 const grub_partition_t partition);
148 int iterate_partition (grub_disk_t disk, const grub_partition_t partition) argument
159 part_name = grub_partition_get_name (partition);
H A Ddisk.c23 #include <grub/partition.h>
297 disk->partition = grub_partition_probe (disk, p + 1);
298 if (! disk->partition)
300 grub_error (GRUB_ERR_UNKNOWN_DEVICE, "no such partition");
345 while (disk->partition)
347 part = disk->partition->parent;
348 grub_free (disk->partition);
349 disk->partition = part;
356 - Make sectors disk relative from partition relative.
358 - Verify that the range is inside the partition
[all...]
/osnet-11/usr/src/grub/grub2/grub-core/partmap/
H A Dbsdlabel.c1 /* bsdlabel.c - Read BSD style partition tables. */
20 #include <grub/partition.h>
46 const grub_partition_t partition))
107 /* disk->partition != NULL as 0 < delta */
108 partname = disk->partition ? grub_partition_get_name (disk->partition)
110 grub_util_warn (_("Discarding improperly nested partition (%s,%s,%s%d)"),
128 const grub_partition_t partition))
131 if (disk->partition && grub_strcmp (disk->partition
42 iterate_real(grub_disk_t disk, grub_disk_addr_t sector, int freebsd, struct grub_partition_map *pmap, int (*hook) (grub_disk_t disk, const grub_partition_t partition)) argument
125 bsdlabel_partition_map_iterate(grub_disk_t disk, int (*hook) (grub_disk_t disk, const grub_partition_t partition)) argument
150 netopenbsdlabel_partition_map_iterate(grub_disk_t disk, grub_uint8_t type, struct grub_partition_map *pmap, int (*hook) (grub_disk_t disk, const grub_partition_t partition)) argument
160 check_msdos(grub_disk_t dsk, const grub_partition_t partition) argument
201 netbsdlabel_partition_map_iterate(grub_disk_t disk, int (*hook) (grub_disk_t disk, const grub_partition_t partition)) argument
212 openbsdlabel_partition_map_iterate(grub_disk_t disk, int (*hook) (grub_disk_t disk, const grub_partition_t partition)) argument
[all...]
H A Dsunpc.c1 /* sunpc.c - Read SUN PC style partition tables. */
21 #include <grub/partition.h>
78 int (*hook) (grub_disk_t disk, const grub_partition_t partition,
106 "not a sun_pc partition table");
115 /* Maybe another error value would be better, because partition
151 int (*hook) (grub_disk_t disk, const grub_partition_t partition))
207 * This partition is invalid since its span is beyond the
208 * containing msdos partition parent.
212 "area, sunpc partition %d (size 0x%llx) is being ignored "
214 "partition
77 sun_pc_partition_map_iterate_extended(grub_disk_t disk, int (*hook) (grub_disk_t disk, const grub_partition_t partition, const struct grub_sun_pc_partition_descriptor *sunpc_partition)) argument
150 sun_pc_partition_map_iterate(grub_disk_t disk, int (*hook) (grub_disk_t disk, const grub_partition_t partition)) argument
[all...]
H A Dgpt.c23 #include <grub/partition.h>
52 const grub_partition_t partition))
73 return grub_error (GRUB_ERR_BAD_PART_TABLE, "no GPT partition map found");
99 /* Calculate the first block and the size of the partition. */
107 part.parent = disk->partition;
146 p2 = disk->partition;
147 disk->partition = p->parent;
151 disk->partition = p2;
154 disk->partition = p2;
156 /* If there's an embed region, it is in a dedicated partition
49 gpt_partition_map_iterate(grub_disk_t disk, int (*hook) (grub_disk_t disk, const grub_partition_t partition)) argument
[all...]
H A Dmsdos.c1 /* pc.c - Read PC style partition tables. */
20 #include <grub/partition.h>
36 const grub_partition_t partition))
45 if (disk->partition && disk->partition->partmap == &grub_msdos_partition_map)
47 if (disk->partition->msdostype == GRUB_PC_PARTITION_TYPE_LINUX_MINIX)
48 delta = disk->partition->start;
103 grub_dprintf ("partition",
104 "partition %d: flag 0x%x, type 0x%x, start 0x%llx, len 0x%llx\n",
109 /* If this is a GPT partition, thi
33 grub_partition_msdos_iterate(grub_disk_t disk, int (*hook) (grub_disk_t disk, const grub_partition_t partition)) argument
[all...]
H A Ddvh.c19 #include <grub/partition.h>
68 const grub_partition_t partition))
86 return grub_error (GRUB_ERR_BAD_PART_TABLE, "not a dvh partition table");
91 /* Maybe another error value would be better, because partition
66 dvh_partition_map_iterate(grub_disk_t disk, int (*hook) (grub_disk_t disk, const grub_partition_t partition)) argument
H A Dplan.c19 #include <grub/partition.h>
35 const grub_partition_t partition))
99 return grub_error (GRUB_ERR_BAD_PART_TABLE, "not a plan partition table");
33 plan_partition_map_iterate(grub_disk_t disk, int (*hook) (grub_disk_t disk, const grub_partition_t partition)) argument
/osnet-11/usr/src/grub/grub2/grub-core/commands/
H A Dgptsync.c26 #include <grub/partition.h>
67 struct grub_partition *partition; local
113 return grub_error (GRUB_ERR_BAD_PART_TABLE, "no GPT partition map found");
130 partition = grub_partition_probe (dev->disk, args[i]);
133 if (! partition)
136 return grub_error (GRUB_ERR_UNKNOWN_DEVICE, "no such partition");
139 if (partition->start + partition->len > 0xffffffff)
148 if (first_sector > partition->start)
149 first_sector = partition
[all...]
H A Dblocklist.c25 #include <grub/partition.h>
96 part_start = grub_partition_get_start (file->device->disk->partition);
H A Dparttool.c1 /* parttool.c - common dispatcher and parser for partition operations */
29 #include <grub/partition.h>
40 N_("Perform COMMANDS on partition.\n"
112 if (grub_strcmp (dev->disk->partition->partmap->name, cur->name) == 0)
145 dev->disk->partition->partmap->name);
173 if (! dev->disk->partition)
176 return grub_error (GRUB_ERR_BAD_ARGUMENT, "not a partition");
222 if (grub_strcmp (name, dev->disk->partition->partmap->name)
254 if (grub_strcmp (dev->disk->partition->partmap->name, cur->name) == 0)
/osnet-11/usr/src/lib/libparted/common/libparted/labels/
H A Drdb.c4 disk_amiga.c - libparted module to manipulate amiga RDB partition tables.
279 uint32_t de_Reserved; /* DOS reserved blocks at start of partition. */
280 uint32_t de_PreAlloc; /* DOS reserved blocks at end of partition */
282 uint32_t de_LowCyl; /* First cylinder of the partition */
283 uint32_t de_HighCyl; /* Last cylinder of the partition */
298 #define PBFB_BOOTABLE 0 /* this partition is intended to be bootable */
300 #define PBFB_NOMOUNT 1 /* do not mount this partition (e.g. manually */
302 #define PBFB_RAID 2 /* this partition is intended to be part of */
304 #define PBFB_LVM 3 /* this partition is intended to be part of */
471 struct PartitionBlock *partition; local
632 struct PartitionBlock *partition; local
779 struct PartitionBlock *partition; local
876 struct PartitionBlock *partition; local
918 struct PartitionBlock *partition; local
950 struct PartitionBlock *partition; local
989 struct PartitionBlock *partition; local
1000 struct PartitionBlock *partition; local
[all...]
/osnet-11/usr/src/grub/grub-0.97/stage2/
H A Dfreebsd.h44 * adaptor (uba, mba, etc), unit number and partition number.
62 #define MAKEBOOTDEV(type, adaptor, controller, unit, partition) \
65 ((partition) << B_PARTITIONSHIFT) | B_DEVMAGIC)
/osnet-11/usr/src/grub/grub-0.97/lib/
H A Ddevice.h44 extern int write_to_partition (char **map, int drive, int partition,
/osnet-11/usr/src/grub/grub2/include/grub/
H A Dpartition.h39 /* The next partition map type. */
42 /* The name of the partition map type. */
45 /* Call HOOK with each partition, until HOOK returns non-zero. */
48 const grub_partition_t partition));
61 /* The partition number. */
70 /* The offset of the partition table. */
73 /* The index of this partition in the partition table. */
76 /* Parent partition (physically contains this partition)
[all...]
H A Dmsdos_partition.h27 #include <grub/partition.h>
35 /* DOS partition types. */
63 /* The partition entry. */
79 /* The partition type. */
101 /* Four partition entries. */
128 const grub_partition_t partition));
/osnet-11/usr/src/grub/grub2/grub-core/loader/i386/pc/
H A Dplan9.c26 #include <grub/partition.h>
117 const grub_partition_t partition);
119 const grub_partition_t partition)
135 if (grub_strcmp (partition->partmap->name, "plan") == 0)
137 unsigned ptr = partition->index + sizeof ("part ") - 1;
139 disk->partition = partition->parent;
147 disk->partition = 0;
161 if (grub_strcmp (partition->partmap->name, "msdos") == 0)
163 switch (partition
118 fill_partition(grub_disk_t disk, const grub_partition_t partition) argument
[all...]
H A Dchainloader.c29 #include <grub/partition.h>
91 part_start = grub_partition_get_start (dev->disk->partition);
202 /* Obtain the partition table from the root device. */
205 if (dev && dev->disk && dev->disk->partition)
211 grub_partition_t p = disk->partition;
215 disk->partition = p->parent;
219 disk->partition = p;
/osnet-11/usr/src/grub/grub2/grub-core/normal/
H A Dmisc.c29 #include <grub/partition.h>
114 if (dev->disk->partition)
116 (unsigned long long) grub_partition_get_start (dev->disk->partition));
/osnet-11/usr/src/lib/libparted/common/libparted/fs/solaris_x86/
H A Dsolaris_x86.c30 * partition can be identified as "solaris".
64 (V_NUMPAR * sizeof (struct partition)) + \
71 struct partition { struct
72 unsigned short p_tag; /* ID tag of partition */
74 long p_start; /* start sector no of partition */
75 long p_size; /* # of blocks in partition */
86 struct partition v_part[V_NUMPAR]; /* partition headers */
87 int32_t timestamp[V_NUMPAR]; /* partition timestamp (unsupported) */
/osnet-11/usr/src/lib/rad/pysmf/common/
H A Dfmri.py54 parts = fmri.partition('/')
67 parts = fmri.partition(':')
/osnet-11/usr/src/grub/grub2/grub-core/kern/emu/
H A Dhostdisk.c25 #include <grub/partition.h>
649 /* Cache of partition start sectors for each disk. */
799 with the one for a partition of the disk. */
805 part_start = grub_partition_get_start (disk->partition);
808 if (disk->partition && sector >= part_start
836 /* Open the partition. */
998 /* Split pre-partition and partition reads. */
999 if (disk->partition && sector < disk->partition
1905 find_partition(grub_disk_t dsk __attribute__ ((unused)), const grub_partition_t partition) argument
[all...]

Completed in 139 milliseconds

1234