Re: devctl attach/detach notification for disks



In message: <20060222190919.C6B9FDCA99B@xxxxxxxxxxxxxx>
Nate Nielsen <nielsen-list@xxxxxxxxxxxxxx> writes:
: I'm working on a bit of code to get devctl notifications for attaching
: and removing of disks. This would allow actions to be taken via devd
: when a disk is attached or removed from the system.

I'm not sure I like the API changes you've made to subr_bus. Why are
they needed?

: Currently I have the attach and detach notifications hooked into
: disk_create() and disk_destroy() in geom_disk.c. See attached (rough)
: patch.
:
: However at these points the disks are not yet present in the /dev/
: filesystem. Anyone have any clues or tips for a better place to hook
: these notifications into the system?

That's one of the main reasons that this hasn't happened yet. The
hard part is getting all of the devices in place before sending
notifications. Robert Watson had a similar thing that I think solved
some of the problems a little better...

Warner
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: devctl attach/detach notification for disks
    ... I'm working on a bit of code to get devctl notifications for attaching ... : and removing of disks. ... and other plugabble diskish devices, and then configure them after a 5 ...
    (freebsd-hackers)
  • Device names cXtXdXsX
    ... where can I find an explanation of how Solaris picks the controller numbers ... cX, e.g. c4t0d0s0, when attaching new disks to a system. ... Any hint is welcome ...
    (SunManagers)
  • New mail envelope missing from tray
    ... I managed to change a setting (this I know- not guessing) that ... permanently has removed my notifications of new email from the tray, ... of removing it just once. ...
    (microsoft.public.outlook)