On Thursday, 15.10.2015 at 16:25, Martin Lucina wrote: > There's a comment in sys/dev/md.c about replacing the hooks with passing in > the config via aux to md_attach() so that would be another way to go about > it, not that I understand how to get that aux info to md_attach() in the > first place.
Thinking about it some more, the above approach doesn't give me an easy way to link in multiple md devices as rump components. I think the right approach would be to have the image-containing component attach a new instance(unit?) of md(4), with the config eventually landing as 'aux' in md_attach() but I don't yet understand the NetBSD device model well enough to implement this.
