|
| PedPartition * | _ped_partition_alloc (const PedDisk *disk, PedPartitionType type, const PedFileSystemType *fs_type, PedSector start, PedSector end) |
| |
| int | _ped_partition_attempt_align (PedPartition *part, const PedConstraint *external, PedConstraint *internal) |
| |
| void | _ped_partition_free (PedPartition *part) |
| |
| void | ped_partition_destroy (PedPartition *part) |
| | Destroy a PedPartition object.
|
| |
| PedPartitionFlag | ped_partition_flag_get_by_name (const char *name) |
| | Returns the flag associated with name.
|
| |
| const char * | ped_partition_flag_get_name (PedPartitionFlag flag) |
| | Returns a name for a flag, e.g.
|
| |
| PedPartitionFlag | ped_partition_flag_next (PedPartitionFlag flag) |
| | Iterates through all flags.
|
| |
| int | ped_partition_get_flag (const PedPartition *part, PedPartitionFlag flag) |
| | Get the state (1 or 0) of a flag on a partition.
|
| |
| const char * | ped_partition_get_name (const PedPartition *part) |
| | Returns the name of a partition part.
|
| |
| char * | ped_partition_get_path (const PedPartition *part) |
| | Return a path that can be used to address the partition in the operating system.
|
| |
| uint8_t | ped_partition_get_type_id (const PedPartition *part) |
| | Get the type-id of the partition part.
|
| |
| uint8_t * | ped_partition_get_type_uuid (const PedPartition *part) |
| | Get the type-uuid of the partition part.
|
| |
| uint8_t * | ped_partition_get_uuid (const PedPartition *part) |
| | Get the uuid of the partition part.
|
| |
| int | ped_partition_is_active (const PedPartition *part) |
| | Return whether or not the partition is "active".
|
| |
| int | ped_partition_is_busy (const PedPartition *part) |
| | Check whether a partition is mounted or busy in some other way.
|
| |
| int | ped_partition_is_flag_available (const PedPartition *part, PedPartitionFlag flag) |
| | Check whether a given flag is available on a partition.
|
| |
| PedPartition * | ped_partition_new (const PedDisk *disk, PedPartitionType type, const PedFileSystemType *fs_type, PedSector start, PedSector end) |
| | Create a new PedPartition on disk.
|
| |
| int | ped_partition_set_flag (PedPartition *part, PedPartitionFlag flag, int state) |
| | Set the state (1 or 0) of a flag on a partition.
|
| |
| int | ped_partition_set_name (PedPartition *part, const char *name) |
| | Sets the name of a partition.
|
| |
| int | ped_partition_set_system (PedPartition *part, const PedFileSystemType *fs_type) |
| | Sets the system type on the partition to fs_type.
|
| |
| int | ped_partition_set_type_id (PedPartition *part, uint8_t id) |
| | Set the type-id of the partition part.
|
| |
| int | ped_partition_set_type_uuid (PedPartition *part, const uint8_t *uuid) |
| | Set the type-uuid of the partition part.
|
| |
| const char * | ped_partition_type_get_name (PedPartitionType type) |
| | Returns a name that seems mildly appropriate for a partition type type.
|
| |
Partition access.
Set the state (1 or 0) of a flag on a partition.
Flags are disk label specific, although they have a global "namespace": the flag PED_PARTITION_BOOT, for example, roughly means "this" partition is bootable". But this means different things on different disk labels (and may not be defined on some disk labels). For example, on MS-DOS disk labels, there can only be one boot partition, and this refers to the partition that will be booted from on startup. On PC98 disk labels, the user can choose from any bootable partition on startup.
- Note
- It is an error to call this on an unavailable flag – use ped_partition_is_flag_available() to determine which flags are available for a given disk label.
- Exceptions
-
| PED_EXCEPTION_ERROR | if the requested flag is not available for this label. |