|
enum | _PedDiskFlag { PED_DISK_CYLINDER_ALIGNMENT =1
, PED_DISK_GPT_PMBR_BOOT =2
, PED_DISK_CYLINDER_ALIGNMENT =1
, PED_DISK_GPT_PMBR_BOOT =2
} |
| Disk flags. More...
|
|
enum | _PedDiskFlag { PED_DISK_CYLINDER_ALIGNMENT =1
, PED_DISK_GPT_PMBR_BOOT =2
, PED_DISK_CYLINDER_ALIGNMENT =1
, PED_DISK_GPT_PMBR_BOOT =2
} |
| Disk flags. More...
|
|
enum | _PedDiskTypeFeature {
PED_DISK_TYPE_EXTENDED =1
, PED_DISK_TYPE_PARTITION_NAME =2
, PED_DISK_TYPE_PARTITION_TYPE_ID =4
, PED_DISK_TYPE_PARTITION_TYPE_UUID =8
,
PED_DISK_TYPE_DISK_UUID =16
, PED_DISK_TYPE_PARTITION_UUID =32
, PED_DISK_TYPE_EXTENDED =1
, PED_DISK_TYPE_PARTITION_NAME =2
,
PED_DISK_TYPE_PARTITION_TYPE_ID =4
, PED_DISK_TYPE_PARTITION_TYPE_UUID =8
, PED_DISK_TYPE_DISK_UUID =16
, PED_DISK_TYPE_PARTITION_UUID =32
} |
|
enum | _PedDiskTypeFeature {
PED_DISK_TYPE_EXTENDED =1
, PED_DISK_TYPE_PARTITION_NAME =2
, PED_DISK_TYPE_PARTITION_TYPE_ID =4
, PED_DISK_TYPE_PARTITION_TYPE_UUID =8
,
PED_DISK_TYPE_DISK_UUID =16
, PED_DISK_TYPE_PARTITION_UUID =32
, PED_DISK_TYPE_EXTENDED =1
, PED_DISK_TYPE_PARTITION_NAME =2
,
PED_DISK_TYPE_PARTITION_TYPE_ID =4
, PED_DISK_TYPE_PARTITION_TYPE_UUID =8
, PED_DISK_TYPE_DISK_UUID =16
, PED_DISK_TYPE_PARTITION_UUID =32
} |
|
enum | _PedPartitionFlag {
PED_PARTITION_BOOT =1
, PED_PARTITION_ROOT =2
, PED_PARTITION_SWAP =3
, PED_PARTITION_HIDDEN =4
,
PED_PARTITION_RAID =5
, PED_PARTITION_LVM =6
, PED_PARTITION_LBA =7
, PED_PARTITION_HPSERVICE =8
,
PED_PARTITION_PALO =9
, PED_PARTITION_PREP =10
, PED_PARTITION_MSFT_RESERVED =11
, PED_PARTITION_BIOS_GRUB =12
,
PED_PARTITION_APPLE_TV_RECOVERY =13
, PED_PARTITION_DIAG =14
, PED_PARTITION_LEGACY_BOOT =15
, PED_PARTITION_MSFT_DATA =16
,
PED_PARTITION_IRST =17
, PED_PARTITION_ESP =18
, PED_PARTITION_CHROMEOS_KERNEL =19
, PED_PARTITION_BLS_BOOT =20
,
PED_PARTITION_LINUX_HOME =21
, PED_PARTITION_NO_AUTOMOUNT =22
, PED_PARTITION_BOOT =1
, PED_PARTITION_ROOT =2
,
PED_PARTITION_SWAP =3
, PED_PARTITION_HIDDEN =4
, PED_PARTITION_RAID =5
, PED_PARTITION_LVM =6
,
PED_PARTITION_LBA =7
, PED_PARTITION_HPSERVICE =8
, PED_PARTITION_PALO =9
, PED_PARTITION_PREP =10
,
PED_PARTITION_MSFT_RESERVED =11
, PED_PARTITION_BIOS_GRUB =12
, PED_PARTITION_APPLE_TV_RECOVERY =13
, PED_PARTITION_DIAG =14
,
PED_PARTITION_LEGACY_BOOT =15
, PED_PARTITION_MSFT_DATA =16
, PED_PARTITION_IRST =17
, PED_PARTITION_ESP =18
,
PED_PARTITION_CHROMEOS_KERNEL =19
, PED_PARTITION_BLS_BOOT =20
, PED_PARTITION_LINUX_HOME =21
, PED_PARTITION_NO_AUTOMOUNT =22
} |
| Partition flags. More...
|
|
enum | _PedPartitionFlag {
PED_PARTITION_BOOT =1
, PED_PARTITION_ROOT =2
, PED_PARTITION_SWAP =3
, PED_PARTITION_HIDDEN =4
,
PED_PARTITION_RAID =5
, PED_PARTITION_LVM =6
, PED_PARTITION_LBA =7
, PED_PARTITION_HPSERVICE =8
,
PED_PARTITION_PALO =9
, PED_PARTITION_PREP =10
, PED_PARTITION_MSFT_RESERVED =11
, PED_PARTITION_BIOS_GRUB =12
,
PED_PARTITION_APPLE_TV_RECOVERY =13
, PED_PARTITION_DIAG =14
, PED_PARTITION_LEGACY_BOOT =15
, PED_PARTITION_MSFT_DATA =16
,
PED_PARTITION_IRST =17
, PED_PARTITION_ESP =18
, PED_PARTITION_CHROMEOS_KERNEL =19
, PED_PARTITION_BLS_BOOT =20
,
PED_PARTITION_LINUX_HOME =21
, PED_PARTITION_NO_AUTOMOUNT =22
, PED_PARTITION_BOOT =1
, PED_PARTITION_ROOT =2
,
PED_PARTITION_SWAP =3
, PED_PARTITION_HIDDEN =4
, PED_PARTITION_RAID =5
, PED_PARTITION_LVM =6
,
PED_PARTITION_LBA =7
, PED_PARTITION_HPSERVICE =8
, PED_PARTITION_PALO =9
, PED_PARTITION_PREP =10
,
PED_PARTITION_MSFT_RESERVED =11
, PED_PARTITION_BIOS_GRUB =12
, PED_PARTITION_APPLE_TV_RECOVERY =13
, PED_PARTITION_DIAG =14
,
PED_PARTITION_LEGACY_BOOT =15
, PED_PARTITION_MSFT_DATA =16
, PED_PARTITION_IRST =17
, PED_PARTITION_ESP =18
,
PED_PARTITION_CHROMEOS_KERNEL =19
, PED_PARTITION_BLS_BOOT =20
, PED_PARTITION_LINUX_HOME =21
, PED_PARTITION_NO_AUTOMOUNT =22
} |
| Partition flags. More...
|
|
enum | _PedPartitionType {
PED_PARTITION_NORMAL = 0x00
, PED_PARTITION_LOGICAL = 0x01
, PED_PARTITION_EXTENDED = 0x02
, PED_PARTITION_FREESPACE = 0x04
,
PED_PARTITION_METADATA = 0x08
, PED_PARTITION_PROTECTED = 0x10
, PED_PARTITION_NORMAL = 0x00
, PED_PARTITION_LOGICAL = 0x01
,
PED_PARTITION_EXTENDED = 0x02
, PED_PARTITION_FREESPACE = 0x04
, PED_PARTITION_METADATA = 0x08
, PED_PARTITION_PROTECTED = 0x10
} |
| Partition types. More...
|
|
enum | _PedPartitionType {
PED_PARTITION_NORMAL = 0x00
, PED_PARTITION_LOGICAL = 0x01
, PED_PARTITION_EXTENDED = 0x02
, PED_PARTITION_FREESPACE = 0x04
,
PED_PARTITION_METADATA = 0x08
, PED_PARTITION_PROTECTED = 0x10
, PED_PARTITION_NORMAL = 0x00
, PED_PARTITION_LOGICAL = 0x01
,
PED_PARTITION_EXTENDED = 0x02
, PED_PARTITION_FREESPACE = 0x04
, PED_PARTITION_METADATA = 0x08
, PED_PARTITION_PROTECTED = 0x10
} |
| Partition types. More...
|
|
|
PedDisk * | _ped_disk_alloc (const PedDevice *dev, const PedDiskType *type) |
|
void | _ped_disk_free (PedDisk *disk) |
|
int | ped_disk_add_partition (PedDisk *disk, PedPartition *part, const PedConstraint *constraint) |
| Adds PedPartition part to PedDisk disk .
|
|
int | ped_disk_check (const PedDisk *disk) |
| Perform a sanity check on a partition table.
|
|
int | ped_disk_clobber (PedDevice *dev) |
| Remove all identifying signatures of a partition table,.
|
|
int | ped_disk_commit (PedDisk *disk) |
|
int | ped_disk_commit_to_dev (PedDisk *disk) |
| Write the changes made to the in-memory description of a partition table to the device.
|
|
int | ped_disk_commit_to_os (PedDisk *disk) |
| Tell the operating system kernel about the partition table layout of disk .
|
|
int | ped_disk_delete_all (PedDisk *disk) |
| Removes and destroys all partitions on disk .
|
|
int | ped_disk_delete_partition (PedDisk *disk, PedPartition *part) |
| Removes part from disk , and destroys part .
|
|
void | ped_disk_destroy (PedDisk *disk) |
| Close disk .
|
|
PedDisk * | ped_disk_duplicate (const PedDisk *old_disk) |
| Clone a PedDisk object.
|
|
PedPartition * | ped_disk_extended_partition (const PedDisk *disk) |
|
PedDiskFlag | ped_disk_flag_get_by_name (const char *name) |
| Returns the flag associated with name .
|
|
const char * | ped_disk_flag_get_name (PedDiskFlag flag) |
| Returns a name for a flag , e.g.
|
|
PedDiskFlag | ped_disk_flag_next (PedDiskFlag flag) |
| Iterates through all disk flags.
|
|
int | ped_disk_get_flag (const PedDisk *disk, PedDiskFlag flag) |
| Get the state (1 or 0 ) of a flag on a disk.
|
|
int | ped_disk_get_last_partition_num (const PedDisk *disk) |
| Get the highest available partition number on disk .
|
|
PedGeometry * | ped_disk_get_max_partition_geometry (PedDisk *disk, PedPartition *part, const PedConstraint *constraint) |
| Get the maximum geometry part can be grown to, subject to constraint .
|
|
int | ped_disk_get_max_primary_partition_count (const PedDisk *disk) |
| Get the maximum number of (primary) partitions the disk label supports.
|
|
bool | ped_disk_get_max_supported_partition_count (const PedDisk *disk, int *supported) |
| Get the highest supported partition number on disk .
|
|
PedPartition * | ped_disk_get_partition (const PedDisk *disk, int num) |
| Returns the partition numbered num .
|
|
PedAlignment * | ped_disk_get_partition_alignment (const PedDisk *disk) |
| Get the alignment needed for partition boundaries on this disk.
|
|
PedPartition * | ped_disk_get_partition_by_sector (const PedDisk *disk, PedSector sect) |
| Returns the partition that contains sect.
|
|
int | ped_disk_get_primary_partition_count (const PedDisk *disk) |
| Get the number of primary partitions.
|
|
uint8_t * | ped_disk_get_uuid (const PedDisk *disk) |
| Get the uuid of the disk disk .
|
|
int | ped_disk_is_flag_available (const PedDisk *disk, PedDiskFlag flag) |
| Check whether a given flag is available on a disk.
|
|
PedSector | ped_disk_max_partition_length (const PedDisk *disk) |
| Return the maximum representable length (in sectors) of a partition on disk \disk.
|
|
PedSector | ped_disk_max_partition_start_sector (const PedDisk *disk) |
| Return the maximum representable start sector of a partition on disk \disk.
|
|
int | ped_disk_maximize_partition (PedDisk *disk, PedPartition *part, const PedConstraint *constraint) |
| Grow PedPartition part geometry to the maximum possible subject to constraint .
|
|
int | ped_disk_minimize_extended_partition (PedDisk *disk) |
| Reduce the size of the extended partition to a minimum while still wrapping its logical partitions.
|
|
PedDisk * | ped_disk_new (PedDevice *dev) |
| Read the partition table off a device (if one is found).
|
|
PedDisk * | ped_disk_new_fresh (PedDevice *dev, const PedDiskType *type) |
| Create a new partition table on dev .
|
|
PedPartition * | ped_disk_next_partition (const PedDisk *disk, const PedPartition *part) |
| Return the next partition after part on disk .
|
|
void | ped_disk_print (const PedDisk *disk) |
| Prints a summary of disk's partitions.
|
|
PedDiskType * | ped_disk_probe (PedDevice *dev) |
| Return the type of partition table detected on "dev".
|
|
int | ped_disk_remove_partition (PedDisk *disk, PedPartition *part) |
| Removes PedPartition part from PedDisk disk .
|
|
int | ped_disk_set_flag (PedDisk *disk, PedDiskFlag flag, int state) |
| Set the state (1 or 0 ) of a flag on a disk.
|
|
int | ped_disk_set_partition_geom (PedDisk *disk, PedPartition *part, const PedConstraint *constraint, PedSector start, PedSector end) |
| Sets the geometry of part (i.e.
|
|
int | ped_disk_type_check_feature (const PedDiskType *disk_type, PedDiskTypeFeature feature) |
| This function checks if a particular type of partition table supports a feature.
|
|
PedDiskType * | ped_disk_type_get (const char *name) |
| Return the disk type with a name of "name".
|
|
PedDiskType * | ped_disk_type_get_next (PedDiskType const *type) |
| Return the next disk type registers, after "type".
|
|
void | ped_disk_type_register (PedDiskType *type) |
|
void | ped_disk_type_unregister (PedDiskType *type) |
|
Disk label access.