HomeFreeBSD

gpart: Avoid geom_gettree() call in "bootcode -b".

Description

gpart: Avoid geom_gettree() call in "bootcode -b".

geom_gettree() may be pretty expensive on large systems, and it is
not needed if only -b flag specified, that is processed by kernel.

MFC after: 1 month

(cherry picked from commit 5c20bfc78706d2fe6e262ddb55af0a8b928d3835)

Details

Provenance
mavAuthored on Mar 8 2022, 6:44 PM
Parents
rG59c15b83be87: geom: Allow "load" command for already loaded modules.
Branches
Unknown
Tags
Unknown