freebsd-dev/sys/geom/label
Pawel Jakub Dawidek f8727e71d7 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
2009-10-09 09:42:22 +00:00
..
g_label_ext2fs.c
g_label_gpt.c Fix tabs, slightly improve comments. 2009-06-18 11:12:11 +00:00
g_label_iso9660.c
g_label_msdosfs.c - Use the correct argument when determining the buffer size. 2009-02-11 18:13:20 +00:00
g_label_msdosfs.h Remove trailing spaces. 2006-09-30 08:16:49 +00:00
g_label_ntfs.c
g_label_reiserfs.c o s/resiserfs_sb/reiserfs_sb/. 2007-11-16 19:43:26 +00:00
g_label_ufs.c Create GEOM labels from UFS IDs, e.g. /dev/ufsid/49c97b1faa2adc43. UFS IDs 2009-03-25 20:38:57 +00:00
g_label.c If provider is open for writing when we taste it, skip it for classes that 2009-10-09 09:42:22 +00:00
g_label.h Add support for labels derived from GPT metadata. 2009-06-13 00:27:03 +00:00