Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/stratis_cli/_actions/_introspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@
<property name="HasCache" type="b" access="read" />
<property name="KeyDescriptions" type="v" access="read" />
<property name="LastReencryptedTimestamp" type="(bs)" access="read" />
<property name="MetadataUsed" type="s" access="read" />
<property name="MetadataVersion" type="t" access="read">
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="const" />
</property>
Expand Down
8 changes: 8 additions & 0 deletions src/stratis_cli/_actions/_list_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,9 +515,17 @@ def size_str(value: Range | None) -> str:
allocated_size = Range(mopool.AllocatedSize())
except DbusClientMissingPropertyError:
allocated_size = None

print(f" Allocated: {size_str(allocated_size)}")
print(f" Used: {size_str(size_triple.used())}")

try:
metadata_used = Range(mopool.MetadataUsed())
except DbusClientMissingPropertyError:
metadata_used = None

print(f" Metadata: {size_str(metadata_used)}")

def display(self):
"""
List a single pool in detail.
Expand Down
Loading