geom_label verbosity patch
Ivan Voras
ivoras at freebsd.org
Thu Apr 23 11:52:26 UTC 2009
Hi,
I want to ask for a community review of these patches:
http://people.freebsd.org/~ivoras/diffs/geom_label_errlevel.txt
http://people.freebsd.org/~ivoras/diffs/glabel.8_errlevel.txt
The intent is to make glabel less chatty on detection of new providers,
etc. Since most of these messages were displayed as "priority 0", I
needed to renumber priorities to make them go away at the default level
(level 0).
The DEBUG levels are changed in this way:
- 0 becomes "silent" - no messages at this level - the default level
- 1 contains previous messages at level 0
- 10 contains most of previous messages at level 1
- 20 contains messages of previous level 2 and of level 1 that are the
result of tasting / validating / checksumming instead of specifically
glabel operations
The jump to decadic numbers is for future compatibility, in case more
verbosity levels need to be introduced just like now, to avoid code
churn.
This should go in very fast if it's going to get into 7.2 (OTOH, it's
fairly low priority).
The patches were ready some time ago but there were some blocking delays.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-geom/attachments/20090423/f4f4061b/signature.pgp
More information about the freebsd-geom
mailing list