On Thu, Jan 28, 2016 at 02:40:23PM +0000, Michael van Elst wrote: > bou...@antioche.eu.org (Manuel Bouyer) writes: > > >> The driver gets detached in config_detach_all() during a > >> regular reboot unless you use the RB_NOSYNC flag. Unfortunately > >> this also prevents unmounting and syncing the filesystems. > > >RB_DUMP should probably be handled as RB_NOSYNC then > > Maybe. It's probably safer to either exclude the dump device > or to re-attach it. Re-attaching seems to be cleaner but is > probably difficult to do in a crash situation.
It's not only the dump device you need to reattach but all the device chain up to mainbus (the detach code may have shut down a PCI bridge for example). It doesn't look so easy. If the dump device is open would this prevent it from being detached ? If so maybe we could open it before detaching all devices ? -- Manuel Bouyer <bou...@antioche.eu.org> NetBSD: 26 ans d'experience feront toujours la difference --