From owner-freebsd-current@freebsd.org Thu Sep 28 15:31:52 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BD518E014B5 for ; Thu, 28 Sep 2017 15:31:52 +0000 (UTC) (envelope-from nick@van-laarhoven.org) Received: from valery.hibma.org (valery.hibma.org [178.21.114.54]) by mx1.freebsd.org (Postfix) with ESMTP id 6BC123903 for ; Thu, 28 Sep 2017 15:31:48 +0000 (UTC) (envelope-from nick@van-laarhoven.org) Received: from [IPv6:2001:980:530a:1:bd28:5ad2:4637:56bc] (unknown [IPv6:2001:980:530a:1:bd28:5ad2:4637:56bc]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by valery.hibma.org (Postfix) with ESMTPSA id 17CB56E0A17 for ; Thu, 28 Sep 2017 17:31:41 +0200 (CEST) From: Nick Hibma Content-Type: multipart/signed; boundary="Apple-Mail=_D1611BBC-3753-4484-8DDB-6D053D1F8C04"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: How do GEOM_PART_* options configure geom_part_* modules?? Message-Id: Date: Thu, 28 Sep 2017 17:31:40 +0200 To: FreeBSD Current Mailing List X-Mailer: Apple Mail (2.3273) X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Sep 2017 15:31:52 -0000 --Apple-Mail=_D1611BBC-3753-4484-8DDB-6D053D1F8C04 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii I created a new kernel config file from scratch, wondered what the = GEOM_PART_MBR option and friends were doing, search for them, didn't = find them in the tree, and deleted them from my config. But... de = resulting disk image didn't boot, because of the fact that it didn't = recognise the MBR partitions (it only had a single diskid entry on the = mount-root prompt). Can anyone explain to me how these kernel options work, as in: they are = defined in kernel configs and as a consequence in opt_geom.h, but how = are they actually used to select which geom_part_* modules/kernel parts = to build? I thought these options were translated to stuff that cpp = would use, but there are not uses of for example GEOM_PART_MBR anywhere = for example! The only thing I was able to come up with, but could not figure out, was = FEATURE() doing some magic. Thanks in advance for any pointers! Nick Hibma nick@van-laarhoven.org -- Open Source: We stand on the shoulders of giants. % grep -r GEOM_PART_ /usr/src/sys/ | grep -Ev '/conf/.*options' /usr/src/sys/geom/part/g_part_mbr.c: "GEOM_PART_MBR Master Boot = Record"); /usr/src/sys/geom/part/g_part_ldm.c: "GEOM_PART_LDM Logical Disk = Manager"); /usr/src/sys/geom/part/g_part_ldm.c: * XXX: We use some knowledge = about GEOM_PART_GPT internal /usr/src/sys/geom/part/g_part_ebr.c:#if defined(GEOM_PART_EBR_COMPAT) /usr/src/sys/geom/part/g_part_ebr.c:#ifndef GEOM_PART_EBR_COMPAT /usr/src/sys/geom/part/g_part_ebr.c:#if defined(GEOM_PART_EBR_COMPAT) /usr/src/sys/geom/part/g_part_ebr.c:#if defined(GEOM_PART_EBR_COMPAT) /usr/src/sys/geom/part/g_part_ebr.c:#if defined(GEOM_PART_EBR_COMPAT) /usr/src/sys/geom/part/g_part_ebr.c:#if defined(GEOM_PART_EBR_COMPAT) /usr/src/sys/geom/part/g_part_ebr.c:#ifndef GEOM_PART_EBR_COMPAT /usr/src/sys/geom/part/g_part_ebr.c:#ifndef GEOM_PART_EBR_COMPAT /usr/src/sys/geom/part/g_part_ebr.c:#ifndef GEOM_PART_EBR_COMPAT /usr/src/sys/geom/part/g_part_ebr.c:#ifndef GEOM_PART_EBR_COMPAT /usr/src/sys/geom/part/g_part.h:#ifndef _GEOM_PART_H_ /usr/src/sys/geom/part/g_part.h:#define _GEOM_PART_H_ /usr/src/sys/geom/part/g_part.h:#endif /* !_GEOM_PART_H_ */ --Apple-Mail=_D1611BBC-3753-4484-8DDB-6D053D1F8C04 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 Comment: GPGTools - https://gpgtools.org iQIzBAEBCgAdFiEETFbRZ/gKjBgO10CrH3Ic7sY0duAFAlnNFdwACgkQH3Ic7sY0 duD7ghAAlgLajw3bUgw4fyq9XVarB3nrKsdidExM/fTcHvK1digiAJ8p34lvzgaM ArMhmkZXWSnACCiXh48x5XUVz7PDepRwo+knp+jrgPe9fMg3BPhh/qLCVE/NtNSb MUI6XJ58NViG2MAkMl2UpJgUo9U3IYdHN21TdgeeYh2jta20D5174X7ADYePaLHy brViS44jCUn63ptylav8BoGzC9cKf6RqptaOBv308WpPHltbYtQtl3RlWsclZWOF 6Gy1aX24A0BtZcQrskYXD8qPJWt1tnqI5H5I3EVw4FSHsp5EY16blirkkZ9v29WR 4TJN+UTjtscsNLGCLWjG15BM7S9EuHWTv33pADA1AFzlBeZUU3jsdnYjTU5R6vng GixxZUvsXm+wUh6Vov5K7PqPdhwK3Lyo6pvdrkZfbtxmmTQVWB67DHCNawGApZvf WC9vecoAUqJO1d4dfnFau0E/w0qPE/Qp6u7aiqDnr0qKhg/9P2IYBt9K8pU9gdxU WA0FX+2fNd9qXXDnyOLLS3oSjJ75SN0X6g5kyfPoXVM5YbuTpNyg/bTrpvNh5gz/ R18qQelFm5XOuJGnUoIxcTcBLBWjUhICYP6pdj8Navnu3m0hkb5vZPXDwfdZmCiZ ujzA+Eb1nE+IrfJcxYWCwd0Z0JzKzB4dLWju6YYAf0uT9mqRR2s= =KCbk -----END PGP SIGNATURE----- --Apple-Mail=_D1611BBC-3753-4484-8DDB-6D053D1F8C04--