]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r214352 adapted to stable/8:
authorae <ae@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 8 Nov 2010 10:08:30 +0000 (10:08 +0000)
committerae <ae@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 8 Nov 2010 10:08:30 +0000 (10:08 +0000)
commit68fbd5c8d05c0d96177df409c5eb132ec6840e3d
treea4a9bed09eeb4bd559863048208888a406eb40e7
parent57c6b173fde494588e19713ecf0e9ead148bc2e0
MFC r214352 adapted to stable/8:
  Reimplemented "gpart destroy -F". Now it does all work in kernel.
  This was needed for recover implementation.

  Implement the recover command for GPT. Now GPT will marked as
  corrupt when any of three types of corruption will be detected:
  1. Damaged primary GPT header or table
  2. Damaged secondary GPT header or table
  3. Secondary header is not located in the last LBA
  Marked GPT becomes read-only. Any changes with corrupt table
  are prohibited. Only "destroy" and "recover" commands are allowed.

Approved by: kib (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@214975 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sbin/geom/class/part/geom_part.c
sbin/geom/class/part/gpart.8
sys/geom/part/g_part.c
sys/geom/part/g_part.h
sys/geom/part/g_part_gpt.c
sys/geom/part/g_part_if.m