]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
geom: Allow "load" command for already loaded modules.
authorAlexander Motin <mav@FreeBSD.org>
Tue, 8 Mar 2022 17:04:42 +0000 (12:04 -0500)
committerAlexander Motin <mav@FreeBSD.org>
Tue, 8 Mar 2022 17:13:51 +0000 (12:13 -0500)
commit5678114cd8b310bd6f0a5699f036fc5b18addd65
tree05574300e2e60d09b00aa2cc725d7a1b9e3d9221
parent74c303e4ace2a1aa60b5b3df8af05d6b61d20006
geom: Allow "load" command for already loaded modules.

I see more user-friendly to do nothing if the module is already
loaded, rather than returning quite confusing error message.

As side effect it allows to avoid std_list_available() call, using
quite expensive on large systems geom_gettree().

MFC after: 1 month
sbin/geom/core/geom.c