diff options
author | Chunwei Chen <[email protected]> | 2019-10-28 09:49:44 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-10-28 09:49:44 -0700 |
commit | 7125a109dcc55628336ff3f58e59e503f4d7694d (patch) | |
tree | 1952966258041a0c3f4fc1dead0db1ed32548e0f /module/zfs/spa.c | |
parent | e35704647e84c62c6a6017ead0b66b446010e4ff (diff) |
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 <[email protected]>
Reviewed-by: Matt Ahrens <[email protected]>
Reviewed-by: Igor Kozhukhov <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Chunwei Chen <[email protected]>
Closes #9516
Diffstat (limited to 'module/zfs/spa.c')
0 files changed, 0 insertions, 0 deletions