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
due to disk geometry and other alignment
constraints (e.g. 1MiB alignment).
The newly created partition may also end up being slightly
larger or smaller than the requested size
bytes for the same
reasons.
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. |
|
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 (currently unused except for standard options). |
|
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. |
|
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 (currently unused except for standard options). |
|
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. |