Searched hist:197898 (Results 1 - 3 of 3) sorted by relevance

/freebsd-10-stable/sys/geom/shsec/
H A Dg_shsec.cdiff 197898 Fri Oct 09 07:48:24 MDT 2009 pjd If provider is open for writing when we taste it, skip it for classes that
depend on on-disk metadata. This was we won't attach to providers that are used
by other classes. For example we don't want to configure partitions on da0 if
it is part of gmirror, what we really want is partitions on mirror/foo.

During regular work it works like this: if provider is open for writing a class
receives the spoiled event from GEOM and detaches, once provider is closed the
taste event is send again and class can rediscover its metadata if it is still
there. This doesn't work that way when new class arrives, because GEOM gives
all existing providers for it to taste, also those open for writing. Classes
have to decided on their own if they want to deal with such providers (eg.
geom_dev) or not (classes modified by this commit).

Reported by: des, Oliver Lehmann <lehmann@ans-netz.de>
Tested by: des, Oliver Lehmann <lehmann@ans-netz.de>
Discussed with: phk, marcel
Reviewed by: marcel
MFC after: 3 days
/freebsd-10-stable/sys/geom/label/
H A Dg_label.c
/freebsd-10-stable/sys/geom/part/
H A Dg_part.c

Completed in 89 milliseconds