]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r259634:
authorae <ae@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 10 Jan 2014 07:48:36 +0000 (07:48 +0000)
committerae <ae@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 10 Jan 2014 07:48:36 +0000 (07:48 +0000)
commitabdc197cd512b7892c810b99e596acb1a7d8dfed
tree964cf2da2e701ff218146655b4ecfec921925442
parentb63698f79872207c61ddf81edec67e0e1fc7db66
MFC r259634:
  Prevent users from deactivating the last component of a mirror.

MFC r259929:
  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.

PR: 184985

git-svn-id: svn://svn.freebsd.org/base/stable/10@260503 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sbin/geom/class/mirror/geom_mirror.c
sbin/geom/class/mirror/gmirror.8
sys/geom/mirror/g_mirror.c
sys/geom/mirror/g_mirror.h
sys/geom/mirror/g_mirror_ctl.c