asomers / ztop

Display ZFS datasets' I/O in real time
BSD 2-Clause "Simplified" License
69 stars 7 forks source link

Panic at src/app/freebsd.rs:53 on FreeBSD 12 #4

Closed asomers-ax closed 3 years ago

asomers-ax commented 3 years ago

On FreeBSD 12, ztop panics like this:

thread 'main' panicked at 'assertion failed: `(left == right)`
  left: `"objset-0xe751ca"`,
 right: `"objset-0x402343"`', src/app/freebsd.rs:53:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

The cause is the lack of nunlinked and nunlinks fields in FreeBSD 12's ZFS dataset stats. Shouldn't be too hard to fix.