UDisksBlockDevice class

A block device on this system.

Constructors

UDisksBlockDevice(UDisksClient _client, _UDisksObject _object)

Properties

configuration List<UDisksConfigurationItem>
The configuration for the device. Use the addConfigurationItem, removeConfigurationItem and updateConfigurationItem methods to add, remove and update configuration items. Use getSecretConfiguration to get the secrets (e.g. passphrases) that may be part of the configuration but isn't exported in this property for security reasons.
no setter
cryptoBackingDevice UDisksBlockDevice?
The block device that is backing this encrypted device.
no setter
device List<int>
The special device file for the block device e.g. '/dev/sda2'.
no setter
deviceNumber int
The dev_t of the block device.
no setter
drive UDisksDrive?
The drive this block device belongs to.
no setter
hashCode int
The hash code for this object.
no setterinherited
hintAuto bool
True if the device should be automatically started.
no setter
hintIconName String
If not blank, the icon name to use when presenting the device.
no setter
hintIgnore bool
True if the device should be hidden from users.
no setter
hintName String
If not blank, the name to use when presenting the device.
no setter
hintPartitionable bool
True if the device is normally expected to be partitionable.
no setter
hintSymbolicIconName String
If not blank, the icon name to use when presenting the device using a symbolic icon.
no setter
hintSystem bool
True if this device is considered a system device.
no setter
id String
A unique and persistent identifier for the device or blank if no such identifier is available.
no setter
idLabel String
The label of the filesystem or other structured data on the block device. This property is blank if there is no label or the label is unknown.
no setter
idType String
More information about the result of probing the block device. Its value depends of the value the idUsage property.
no setter
idUsage String
A result of probing for signatures on the block device.
no setter
idUUID String
The UUID of the filesystem or other structured data on the block device. This property is blank if there is no UUID or the UUID is unknown.
no setter
idVersion String
The version of the filesystem or other structured data on the block device. This property is blank if there is no version or the version is unknown.
no setter
preferredDevice List<int>
The special device file to present in the UI instead of the value of the Device property.
no setter
readOnly bool
True if the device cannot be written to.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
The size of the block device in bytes.
no setter
Known symlinks in /dev that points to the device file in the device property.
no setter
userspaceMountOptions List<String>
List of userspace mount options..
no setter

Methods

addConfigurationItem(UDisksConfigurationItem item) Future<void>
Adds a new configuration item.
format(String type, {bool takeOwnership = false, dynamic encryptPassphrase, UDisksFormatEraseMethod? erase, bool updatePartitionType = false, bool noBlock = false, bool dryRunFirst = false, bool noDiscard = false, Iterable<UDisksConfigurationItem> configItems = const [], bool tearDown = false}) Future<void>
Formats the device with a file system, partition table or other well-known content.
getSecretConfiguration() Future<List<UDisksConfigurationItem>>
Returns the same value as in the configuration property but without secret information filtered out.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeConfigurationItem(UDisksConfigurationItem item) Future<void>
Removes an existing configuration item.
rescan() Future<void>
Request that the kernel and core OS rescans the contents of the device and update their state to reflect this.
toString() String
A string representation of this object.
inherited
updateConfigurationItem(UDisksConfigurationItem oldItem, UDisksConfigurationItem newItem) Future<void>
Removes a configuration item and adds a new one.

Operators

operator ==(Object other) bool
The equality operator.
inherited