When running with kern.securelevel=2, trying to add an existing softraid volume with bioctl -c fails with:
softraid0: invalid metadata format This occurs as the call to VOP_OPEN in sr_meta_probe requests read/write access, which is obviously disallowed at securelevel 2. Considering that regular partitions can be mounted and umounted at securelevel 2, is this inability to add a softraid volume by design, or an undesired side effect? It's not mentioned in securelevel(7), although the bugs section does note that the list of effects may not be complete. Should we test for securelevel 2, and return a more specific error message than, 'invalid metadata format', in this case? The current error seems somewhat misleading, as the on-disk metadata is obviously fine.