Page MenuHomeFreeBSD

makefs: Ignore the "tags" keyword
ClosedPublic

Authored by markj on Mar 23 2021, 2:25 AM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 8 2024, 2:04 AM
Unknown Object (File)
Jan 29 2024, 7:54 PM
Unknown Object (File)
Dec 22 2023, 11:21 PM
Unknown Object (File)
Dec 22 2023, 8:16 PM
Unknown Object (File)
Dec 14 2023, 10:49 PM
Unknown Object (File)
Dec 13 2023, 7:24 AM
Unknown Object (File)
Dec 8 2023, 9:52 AM
Unknown Object (File)
Nov 28 2023, 5:30 AM
Subscribers

Details

Summary

We emit these when making a filesystem using the METALOG that comes with
a -DNO_ROOT build. I believe they're used exclusively for pkgbase,
though I can't quite see how.

When building a filesystem using such a METALOG, many warnings get
emitted. It seems to make sense to just ignore this keyword (beyond
checking that there's an associated value).

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

markj requested review of this revision.Mar 23 2021, 2:25 AM
This revision is now accepted and ready to land.Mar 23 2021, 2:26 AM

I don't see many reports of this on the mailing lists, so I might be doing something wrong. But I get tons of warnings with a simple

$ make installkernel -DNO_ROOT DESTDIR=/tmp
$ makefs ... /tmp/kernelfs.raw /tmp/METALOG

Seems sensible to me. I'm not entirely sure we shouldn't just silently ignore unknown tags unless some sort of --picky option is specified.

Seems sensible to me. I'm not entirely sure we shouldn't just silently ignore unknown tags unless some sort of --picky option is specified.

I thought about it but wanted to stay conservative for now. The set of tools in the base system that emit or consume mtrees is fairly small so it's easy to evaluate keywords on a case-by-case basis.