bsnmpd always died on HDD detach

Andrey V. Elsukov bu7cher at yandex.ru
Sun Sep 16 13:56:27 UTC 2012


On 15.09.2012 16:50, Mikolaj Golub wrote:
> I am attaching the patch that fixes the issue for me.
> 
> I was wandering why the issue was not observed after md device
> removal, as disk_OS_get_MD_disks() did the same things. It has turned
> out that hostres just does not see md devices, so this function is
> currently useless. hostres gets devices from devinfo(3), which does
> not return md devices.
> 
> disk_OS_get_disks() calls kern.disks sysctl to get the list of disks,
> and uses device_map differently, so it is not affected.

I also have a big patch to the hostres module, but it is not yet
finished. Probably i should commit the part related to the disk
subsystem. This part has been rewritten to be GEOM aware.

-- 
WBR, Andrey V. Elsukov


More information about the freebsd-stable mailing list