Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Nov 2007 20:51:05 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sbin/gpt gpt.c
Message-ID:  <200711012051.lA1Kp5NP014348@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jhb         2007-11-01 20:51:04 UTC

  FreeBSD src repository

  Modified files:
    sbin/gpt             gpt.c 
  Log:
  Don't look for GPT primary and secondary tables on a disk unless we have
  a valid PMBR.  Without this fix, if label a disk with a GPT, then relabel
  it with an MBR the GPT tables are still present.  If you then try to create
  a GPT with 'gpt create', gpt(8) will fail to open the device because the
  partitions in the stale GPT overlap with the slices in the MBR.
  
  MFC after:      1 week
  
  Revision  Changes    Path
  1.18      +10 -4     src/sbin/gpt/gpt.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200711012051.lA1Kp5NP014348>