Date: Thu, 28 Sep 2017 17:31:40 +0200 From: Nick Hibma <nick@van-laarhoven.org> To: FreeBSD Current Mailing List <freebsd-current@FreeBSD.ORG> Subject: How do GEOM_PART_* options configure geom_part_* modules?? Message-ID: <FD2F9831-F5E9-459D-B250-E5D9AE72DA08@van-laarhoven.org>
next in thread | raw e-mail | index | archive | help
--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 <mailto: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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FD2F9831-F5E9-459D-B250-E5D9AE72DA08>