Correctly display multiple jails snapshots

This commit is contained in:
yo
2022-04-04 20:10:42 +02:00
parent a12c268be2
commit 966a3d57c1
3 changed files with 22 additions and 14 deletions

View File

@ -181,6 +181,7 @@ type Snapshot struct {
// snapshot name is stored after '@' in dataset name
Name string
Dsname string
Jailname string
Mountpoint string
Used string
Referenced string
@ -486,8 +487,10 @@ type JailConfigSort struct {
type SnapshotSort struct {
NameInc snapshotLessFunc
NameDec snapshotLessFunc
DsNameInc snapshotLessFunc
DsNameDec snapshotLessFunc
DsnameInc snapshotLessFunc
DsnameDec snapshotLessFunc
JailnameInc snapshotLessFunc
JailnameDec snapshotLessFunc
MountpointInc snapshotLessFunc
MountpointDec snapshotLessFunc
UsedInc snapshotLessFunc