After r328426, g_label depends on UFS (option FFS) code to read UFS

superblock, and the kernel will fail to link when UFS is not built
in.  This commit makes it depend on a small portion of FFS bits and
thereby fixes build for this situation.

This is intended as an interim bandaid, and the actual superblock
reading code should probably be made independent of UFS, so we do
not need to depend on it (see kib@'s comment in the review for
details), and we will revisit this once the superblock check hashes
are all in place.

Differential Revision:	https://reviews.freebsd.org/D14092
This commit is contained in:
Xin LI 2018-02-03 09:15:13 +00:00
parent 5cca46a92c
commit 90a48fba23
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=328829
2 changed files with 4 additions and 2 deletions

View File

@ -4814,8 +4814,8 @@ ufs/ffs/ffs_balloc.c optional ffs
ufs/ffs/ffs_inode.c optional ffs
ufs/ffs/ffs_snapshot.c optional ffs
ufs/ffs/ffs_softdep.c optional ffs
ufs/ffs/ffs_subr.c optional ffs
ufs/ffs/ffs_tables.c optional ffs
ufs/ffs/ffs_subr.c optional ffs | geom_label
ufs/ffs/ffs_tables.c optional ffs | geom_label
ufs/ffs/ffs_vfsops.c optional ffs
ufs/ffs/ffs_vnops.c optional ffs
ufs/ffs/ffs_rawread.c optional ffs directio

View File

@ -146,3 +146,5 @@ struct g_label_desc g_label_ufs_id = {
G_LABEL_INIT(ufsid, g_label_ufs_id, "Create device nodes for UFS file system IDs");
G_LABEL_INIT(ufs, g_label_ufs_volume, "Create device nodes for UFS volume names");
MODULE_DEPEND(g_label, ufs, 1, 1, 1);