Skip to content

Commit

Permalink
Merge pull request #1045 from mulkieran/issue_project_643
Browse files Browse the repository at this point in the history
Display snapshot origin field
  • Loading branch information
mulkieran authored Feb 26, 2024
2 parents 80bbac8 + d0b2162 commit 3380def
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/stratis_cli/_actions/_introspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="invalidates" />
</property>
<property name="Name" type="s" access="read" />
<property name="Origin" type="(bs)" access="read" />
<property name="Pool" type="o" access="read">
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="const" />
</property>
Expand Down
4 changes: 4 additions & 0 deletions src/stratis_cli/_actions/_list_filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ def display(self):
date_parser.parse(fs.Created()).astimezone().strftime("%b %d %Y %H:%M")
)

origin = get_property(fs.Origin(), self.uuid_formatter, "None")

print(f"UUID: {self.uuid_formatter(fs.Uuid())}")
print(f"Name: {fs.Name()}")
print(f"Pool: {self.path_to_name[fs.Pool()]}")
Expand All @@ -184,6 +186,8 @@ def display(self):
print()
print(f"Created: {created}")
print()
print(f"Snapshot origin: {origin}")
print()
print("Sizes:")
print(f" Logical size of thin device: {total}")
print(f" Total used (including XFS metadata): {used}")
Expand Down

0 comments on commit 3380def

Please sign in to comment.