cvs commit: src/sbin/gpt gpt.c
John Baldwin
jhb at FreeBSD.org
Thu Nov 1 13:51:06 PDT 2007
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
More information about the cvs-src
mailing list