Top |
org.freedesktop.UDisks2.NVMe.Namespaceorg.freedesktop.UDisks2.NVMe.Namespace — NVMe namespace device |
FormatNamespace (IN a{sv} options);
NSID readable u NGUID readable s EUI64 readable s UUID readable s WWN readable s LBAFormats readable a(qqy) FormattedLBASize readable (qqy) NamespaceSize readable t NamespaceCapacity readable t NamespaceUtilization readable t FormatPercentRemaining readable i
FormatNamespace (IN a{sv} options);
Performs low level format of the NVM media, destroying all data and metadata in the current namespace.
The optional lba_data_size
parameter indicates the LBA Data Size in bytes to use (see the related
"LBAFormats" property) and similarly the metadata_size
parameter
denotes the number of metadata bytes provided per LBA. If not specified, the current active format is used.
The optional secure_erase
parameter can be used to perform secure erase - valid values are
user_data
where the user data are overwritten by a pattern, and crypto_erase
which removes the encryption key with which the user data was previously encrypted.
This call blocks until the format operation has finished.
|
Options - known options (in addition to standard options) includes |
Since 2.10.0
NGUID readable s
since
: 2.10.0
The Namespace Globally Unique Identifier.
A 128-bit value that is globally unique and assigned to the namespace when the namespace is created. Remains fixed throughout the life of the namespace.
EUI64 readable s
since
: 2.10.0
The IEEE Extended Unique Identifier.
A 64-bit value that is globally unique and assigned to the namespace when the namespace is created. Remains fixed throughout the life of the namespace.
UUID readable s
since
: 2.10.0
The Namespace UUID.
Contains a 128-bit Universally Unique Identifier (UUID) as specified in RFC 4122.
WWN readable s
since
: 2.10.0
The World Wide Name of the namespace or blank if unknown.
LBAFormats readable a(qqy)
since
: 2.10.0
List of LBA formats supported by the controller.
This is an array of triplets of (size
, metadata_size
, performance
) where size
denotes LBA Data Size in bytes, metadata_size
denotes the number of metadata bytes
provided per LBA and performance
indicates the relative performance relative
to other formats in the list.
Known values for performance
include:
0 |
Unknown relative performance index |
1 |
Best performance |
2 |
Better performance |
3 |
Good performance |
4 |
Degraded performance |
FormattedLBASize readable (qqy)
since
: 2.10.0
The actual LBA data size, the metadata size and the relative performance index that the namespace has been formatted with.
Similar to "LBAFormats" this is a triplet
of (size
, metadata_size
, performance
) where size
denotes LBA Data Size
in bytes, metadata_size
denotes the number of metadata bytes provided per LBA
and performance
indicates the relative performance relative to other formats
indicated in the "LBAFormats" property.
NamespaceSize readable t
since
: 2.10.0
The total size of the namespace in logical blocks. The number of logical blocks is based on the formatted LBA size (see "FormattedLBASize").
NamespaceCapacity readable t
since
: 2.10.0
The maximum number of logical blocks that may be allocated in the namespace. The number of logical blocks is based on the formatted LBA size (see "FormattedLBASize").
NamespaceUtilization readable t
since
: 2.10.0
The current number of logical blocks allocated in the namespace. This value is less than or equal to the "NamespaceCapacity". The number of logical blocks is based on the formatted LBA size (see "FormattedLBASize").