A gmirror question.
Mel
fbsd.questions at rachie.is-a-geek.net
Tue Oct 28 15:52:47 PDT 2008
On Tuesday 28 October 2008 17:53:20 Stefan Moro wrote:
> But if this is the case, how does gmirror know that it should use (in
> my example above) ad10 and not ad4 as the additional disk in the
> mirror.
> Or does gmirror use something else than the /dev entries to address disks??
>
> I'm just curious how gmirror does this.
It doesn't care about the device name. Geom modules that are loaded into the
kernel, register a 'taste' function, with the geom(4) subsystem, that tastes
if a provider is something they want to work with. Effectively, this taste
function reads the last sector and checks if it has gmirror metadata.
The geom system is the 'magician', which basically hands all providers to the
loaded modules.
--
Mel
Problem with today's modular software: they start with the modules
and never get to the software part.
More information about the freebsd-questions
mailing list