Skip to content

Commit

Permalink
sort info snapshots by creation
Browse files Browse the repository at this point in the history
  • Loading branch information
churchers committed Nov 5, 2019
1 parent b215760 commit 555af6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vm-info
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ info::guest_zfs(){

[ -z "${VM_DS_ZFS}" ] && return 1

_data=$(zfs list -o name,used,creation -rHt snapshot "${VM_DS_ZFS_DATASET}/${_name}" | sed "s/^/${_INDENT}/")
_data=$(zfs list -o name,used,creation -s creation -rHt snapshot "${VM_DS_ZFS_DATASET}/${_name}" | sed "s/^/${_INDENT}/")

if [ -n "${_data}" ]; then
echo ""
Expand Down

0 comments on commit 555af6a

Please sign in to comment.