mirror_zfs/cmd/zpool
Chunwei Chen 7125a109dc Fix zpool history unbounded memory usage
In original implementation, zpool history will read the whole history
before printing anything, causing memory usage goes unbounded. We fix
this by breaking it into read-print iterations.

Reviewed-by: Tom Caputi <tcaputi@datto.com>
Reviewed-by: Matt Ahrens <matt@delphix.com>
Reviewed-by: Igor Kozhukhov <igor@dilos.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Chunwei Chen <david.chen@nutanix.com>
Closes #9516
2019-10-28 09:49:44 -07:00
..
os/linux OpenZFS restructuring - libspl 2019-10-02 10:39:48 -07:00
zpool.d shellcheck pass 2019-02-04 09:07:19 -08:00
.gitignore Add .gitignore files to exclude build products 2010-01-08 11:35:17 -08:00
Makefile.am OpenZFS restructuring - libspl 2019-10-02 10:39:48 -07:00
zpool_iter.c Add libzutil for libzfs or libzpool consumers 2018-11-05 11:22:33 -08:00
zpool_main.c Fix zpool history unbounded memory usage 2019-10-28 09:49:44 -07:00
zpool_util.c OpenZFS restructuring - zpool 2019-09-30 12:16:06 -07:00
zpool_util.h OpenZFS restructuring - zpool 2019-09-30 12:16:06 -07:00
zpool_vdev.c OpenZFS restructuring - libspl 2019-10-02 10:39:48 -07:00