]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r259634:
authorae <ae@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 10 Jan 2014 12:09:38 +0000 (12:09 +0000)
committerae <ae@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 10 Jan 2014 12:09:38 +0000 (12:09 +0000)
commitf40823457d1b02cc1ea9b4eab2a25da0c191fb0f
tree5b41c487b43159ae17f6c3de239c1cfa2e9742a4
parentc24aabd91a3259417ac1238e57b6a976cb953e11
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/9@260507 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