Top |
org.freedesktop.UDisks2.PartitionTableorg.freedesktop.UDisks2.PartitionTable — Block device containing a partition table |
CreatePartition (IN t offset, IN t size, IN s type, IN s name, IN a{sv} options, OUT o created_partition); CreatePartitionAndFormat (IN t offset, IN t size, IN s type, IN s name, IN a{sv} options, IN s format_type, IN a{sv} format_options, OUT o created_partition);
This interface is used for org.freedesktop.UDisks2.Block devices that contain a partition table.
CreatePartition (IN t offset, IN t size, IN s type, IN s name, IN a{sv} options, OUT o created_partition);
Creates a new partition.
Note that the created partition won't necessarily be created
at the exact offset
but slightly behind due to disk geometry
and other alignment constraints (e.g. 1MiB alignment).
The newly created partition may also end up being slightly
larger than the requested size
bytes for the same reasons.
The maximal size can be automatically set by using 0 as size.
For dos
partition tables, the partition type can be
set with the partition
-type option. Possible values are: "primary",
"extended" or "logical".
An optional parameter partition-uuid
denotes
the partition UUID to set for the newly created partition (GPT only).
The newly created partition will be wiped of known filesystem signatures using the wipefs(8) command.
|
The desired offset where the partition should be created, in bytes. |
|
The desired size of the partition, in bytes (0 for maximal size). |
|
The type of partition to create (cf. the "Type" property) or blank to use the default for the partition table type and OS. |
|
The name for the new partition or blank if the partition table do not support names. |
|
Options - known options (in addition to standard options) include |
|
An object path to the created block device object implementing the org.freedesktop.UDisks2.Partition interface. |
CreatePartitionAndFormat (IN t offset, IN t size, IN s type, IN s name, IN a{sv} options, IN s format_type, IN a{sv} format_options, OUT o created_partition);
This is a combination of org.freedesktop.UDisks2.PartitionTable:CreatePartition and org.freedesktop.UDisks2.Block:Format. After creating the partition, the resulting block device is formatted.
|
The desired offset where the partition should be created, in bytes. |
|
The desired size of the partition, in bytes (0 for maximal size). |
|
The type of partition to create (cf. the "Type" property) or blank to use the default for the partition table type and OS. |
|
The name for the new partition or blank if the partition table do not support names. |
|
Options - known options (in addition to standard options) include |
|
The type to use for Format. |
|
Options for Format. |
|
An object path to the created block device object implementing the org.freedesktop.UDisks2.Partition interface. |
Partitions readable ao
List of object paths of the org.freedesktop.UDisks2.Partition
objects that belongs to this partition table.
since
: 2.7.2