linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] partitions/efi: complete gpt kernel param purpose
@ 2013-12-04 23:16 Davidlohr Bueso
  2013-12-05 11:21 ` Karel Zak
  0 siblings, 1 reply; 3+ messages in thread
From: Davidlohr Bueso @ 2013-12-04 23:16 UTC (permalink / raw)
  To: Andrew Morton
  Cc: linux-kernel, Matt Domsch, Matt Fleming,
	Chandramouleeswaran,Aswin, Davidlohr Bueso

From: Davidlohr Bueso <davidlohr@hp.com>

The usage of the 'gpt' kernel parameter is twofold:
(i) skip any mbr integrity checks and (ii) enable the
backup GPT header to be used in situations where the
primary one is corrupted. This last "feature" is not
obvious and needs to be properly documented in the
kernel-parameters document.

References: https://bugzilla.kernel.org/show_bug.cgi?id=63591
Signed-off-by: Davidlohr Bueso <davidlohr@hp.com>
---
 Documentation/kernel-parameters.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt
index 50680a5..1e353a4 100644
--- a/Documentation/kernel-parameters.txt
+++ b/Documentation/kernel-parameters.txt
@@ -1013,7 +1013,9 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
 			debugfs files are removed at module unload time.
 
 	gpt		[EFI] Forces disk with valid GPT signature but
-			invalid Protective MBR to be treated as GPT.
+			invalid Protective MBR to be treated as GPT. If the
+			primary GPT is corrupted, it enables the backup/alternate
+			GPT to be used instead.
 
 	grcan.enable0=	[HW] Configuration of physical interface 0. Determines
 			the "Enable 0" bit of the configuration register.
-- 
1.8.1.4




^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] partitions/efi: complete gpt kernel param purpose
  2013-12-04 23:16 [PATCH] partitions/efi: complete gpt kernel param purpose Davidlohr Bueso
@ 2013-12-05 11:21 ` Karel Zak
  2013-12-05 14:52   ` Davidlohr Bueso
  0 siblings, 1 reply; 3+ messages in thread
From: Karel Zak @ 2013-12-05 11:21 UTC (permalink / raw)
  To: Davidlohr Bueso
  Cc: Andrew Morton, linux-kernel, Matt Domsch, Matt Fleming,
	Chandramouleeswaran,Aswin

On Wed, Dec 04, 2013 at 03:16:02PM -0800, Davidlohr Bueso wrote:
> From: Davidlohr Bueso <davidlohr@hp.com>
> 
> The usage of the 'gpt' kernel parameter is twofold:
> (i) skip any mbr integrity checks and (ii) enable the
> backup GPT header to be used in situations where the
> primary one is corrupted. This last "feature" is not
> obvious and needs to be properly documented in the
> kernel-parameters document.

The question is if we really have to force users to specify "gpt"
kernel parameter to use the backup GPT header. Maybe it would be
enough to report the problem (print warning) and use the valid backup
header. IMHO the current behaviour is overkill.

    Karel

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] partitions/efi: complete gpt kernel param purpose
  2013-12-05 11:21 ` Karel Zak
@ 2013-12-05 14:52   ` Davidlohr Bueso
  0 siblings, 0 replies; 3+ messages in thread
From: Davidlohr Bueso @ 2013-12-05 14:52 UTC (permalink / raw)
  To: Karel Zak
  Cc: Andrew Morton, linux-kernel, Matt Domsch, Matt Fleming,
	Chandramouleeswaran,Aswin

On Thu, 2013-12-05 at 12:21 +0100, Karel Zak wrote:
> On Wed, Dec 04, 2013 at 03:16:02PM -0800, Davidlohr Bueso wrote:
> > From: Davidlohr Bueso <davidlohr@hp.com>
> > 
> > The usage of the 'gpt' kernel parameter is twofold:
> > (i) skip any mbr integrity checks and (ii) enable the
> > backup GPT header to be used in situations where the
> > primary one is corrupted. This last "feature" is not
> > obvious and needs to be properly documented in the
> > kernel-parameters document.
> 
> The question is if we really have to force users to specify "gpt"
> kernel parameter to use the backup GPT header. Maybe it would be
> enough to report the problem (print warning) and use the valid backup
> header. IMHO the current behaviour is overkill.

Well yes, however, the rationale behind having to use 'gpt' is to
protect against devices which misreport their size, and forces the user
to decide to use the alternate GPT when they still have a valid primary
header. This has been the policy for years.

Thanks,
Davidlohr


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-12-05 14:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-04 23:16 [PATCH] partitions/efi: complete gpt kernel param purpose Davidlohr Bueso
2013-12-05 11:21 ` Karel Zak
2013-12-05 14:52   ` Davidlohr Bueso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).