freebsd-dev/sys/geom/mirror
Andrey V. Elsukov ae3bc0acff Add an ability to stop gmirror and clear its metadata in one command.
This fixes the problem, when gmirror starts again just after stop.

The problem occurs when gmirror's component has geom label with equal size.
E.g. gpt and gptid have the same size as partition, diskid has the same
size as entire disk. When gmirror's geom has been destroyed, glabel
creates its providers and this initiate retaste.

Now "gmirror destroy" command is available. It destroys geom and also
erases gmirror's metadata.

MFC after:	2 weeks
2013-12-27 02:43:53 +00:00
..
g_mirror_ctl.c Add an ability to stop gmirror and clear its metadata in one command. 2013-12-27 02:43:53 +00:00
g_mirror.c Add an ability to stop gmirror and clear its metadata in one command. 2013-12-27 02:43:53 +00:00
g_mirror.h Add an ability to stop gmirror and clear its metadata in one command. 2013-12-27 02:43:53 +00:00