libkvm - Interim solution to boost swap statistics fields
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 30 Dec 2016 22:47:16 +0000 (14:47 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 30 Dec 2016 22:47:16 +0000 (14:47 -0800)
commitecc2e461f29d5bad86787ac5db04874a66b03fad
tree76df7b3868ad83403ac57111838fb4414741399d
parenta7a03a5f23a9828719d348cb3c6c880d28003738
libkvm - Interim solution to boost swap statistics fields

* Change ksw_used and ksw_total to unsigned, which increases the maximum
  total swap that can be displayed properly from ~8TB to ~16TB.

  This is an interim solution, since DragonFly now supports more than 16TB
  of swap.

* Noticed when the pstat output was mangled after I configured 16TB of
  actual honest to god swap space.
lib/libkvm/kvm.h
lib/libkvm/kvm_getswapinfo.3
lib/libkvm/kvm_getswapinfo.c