]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bectl(8): Sort BEs lightly by active (now or later) BE, then others
authorkevans <kevans@FreeBSD.org>
Sat, 4 Aug 2018 06:29:46 +0000 (06:29 +0000)
committerkevans <kevans@FreeBSD.org>
Sat, 4 Aug 2018 06:29:46 +0000 (06:29 +0000)
commit2e9b90de37a4c9386dbc81718453f76436bc802b
tree1396d7e4d3ec8edc101b213cf5def3124523aaca
parent45778557a3af479b733cc832f5a51d704cb612a7
bectl(8): Sort BEs lightly by active (now or later) BE, then others

While it could be preferred to do this at insert in libbe(3), there's no
convenient way to insert at the head of an nvlist. Instead, we'll make two
passes over- once to print anything active either now or at nextboot, and
another to print everything else.

This doesn't actually impact performance in a significant way here, so we'll
worry about further optimizations if the need actually arises.
sbin/bectl/bectl.c