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 over 5 years ago
- % Done changed from 0 to 100
- Status changed from New to Closed
commit 3339867a862f63acdad71abd574d5d79e18d8579 Author: Matthew Ahrens <firstname.lastname@example.org> Date: 2014-09-05T17:04:58.000Z 5116 zpool history -i goes into infinite loop Reviewed by: Christopher Siden <email@example.com> Reviewed by: Dan Kimmel <firstname.lastname@example.org> Reviewed by: George Wilson <email@example.com> Reviewed by: Richard Elling <firstname.lastname@example.org> Reviewed by: Boris Protopopov <email@example.com> Approved by: Dan McDonald <firstname.lastname@example.org>