zpool history -i goes into infinite loop
After doing a "zfs destroy" that destroys many snapshots in one ioctl,
if you run "zpool history -i", it
will go into an infinite loop.
The problem is that there is a history record which is larger than the buffer
that libzfs provides (128KB), and libzfs does not handle this error gracefully.
We should make it expand the buffer as needed, or at least fail gracefully.
Updated by Electric Monk about 5 years ago
- % Done changed from 0 to 100
- Status changed from New to Closed
commit 3339867a862f63acdad71abd574d5d79e18d8579 Author: Matthew Ahrens <email@example.com> Date: 2014-09-05T17:04:58.000Z 5116 zpool history -i goes into infinite loop Reviewed by: Christopher Siden <firstname.lastname@example.org> Reviewed by: Dan Kimmel <email@example.com> Reviewed by: George Wilson <firstname.lastname@example.org> Reviewed by: Richard Elling <email@example.com> Reviewed by: Boris Protopopov <firstname.lastname@example.org> Approved by: Dan McDonald <email@example.com>