aboutsummaryrefslogtreecommitdiff
path: root/sys/geom/mirror/g_mirror.h
diff options
context:
space:
mode:
authorAndrey V. Elsukov <ae@FreeBSD.org>2013-12-27 02:43:53 +0000
committerAndrey V. Elsukov <ae@FreeBSD.org>2013-12-27 02:43:53 +0000
commitae3bc0acff3ffc184a1eab4fb7d2c0f76f47e9e9 (patch)
tree2b8f0a6b50569ec5369b518908b1e1c615e1deef /sys/geom/mirror/g_mirror.h
parent7d1af5ca62e12f4eec296cfb743105177ba7690f (diff)
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
Notes
Notes: svn path=/head/; revision=259929
Diffstat (limited to 'sys/geom/mirror/g_mirror.h')
-rw-r--r--sys/geom/mirror/g_mirror.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/geom/mirror/g_mirror.h b/sys/geom/mirror/g_mirror.h
index 96270c8bf2b7..d203b97b6392 100644
--- a/sys/geom/mirror/g_mirror.h
+++ b/sys/geom/mirror/g_mirror.h
@@ -160,6 +160,7 @@ struct g_mirror_event {
#define G_MIRROR_DEVICE_FLAG_WAIT 0x0200000000000000ULL
#define G_MIRROR_DEVICE_FLAG_DESTROYING 0x0400000000000000ULL
#define G_MIRROR_DEVICE_FLAG_TASTING 0x0800000000000000ULL
+#define G_MIRROR_DEVICE_FLAG_WIPE 0x1000000000000000ULL
#define G_MIRROR_DEVICE_STATE_STARTING 0
#define G_MIRROR_DEVICE_STATE_RUNNING 1