From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Cox Subject: Re: [PATCH] make kernel ignore bogus partitions Date: Thu, 11 May 2006 18:09:04 +0100 Message-ID: <1147367344.26130.71.camel@localhost.localdomain> References: <20060503210055.GB31048@beardog.cca.cpqcorp.net> <20060509124138.43e4bac0.akpm@osdl.org> <20060511161736.GB8124@beardog.cca.cpqcorp.net> <20060511092736.27cedfd5.akpm@osdl.org> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: Received: from outpipe-village-512-1.bc.nu ([81.2.110.250]:31412 "EHLO lxorguk.ukuu.org.uk") by vger.kernel.org with ESMTP id S1030357AbWEKQ7O (ORCPT ); Thu, 11 May 2006 12:59:14 -0400 In-Reply-To: <20060511092736.27cedfd5.akpm@osdl.org> Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: Andrew Morton Cc: "Mike Miller (OS Dev)" , linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, aeb@cwi.nl On Iau, 2006-05-11 at 09:27 -0700, Andrew Morton wrote: > "Mike Miller (OS Dev)" wrote: > > > > On Tue, May 09, 2006 at 12:41:38PM -0700, Andrew Morton wrote: > > > "Mike Miller (OS Dev)" wrote: > > > > > > > > Patch 1/1 > > > > Sometimes partitions claim to be larger than the reported capacity of a > > > > disk device. This patch makes the kernel ignore those partitions. The problem with ignoring such partitions is that you will then get burned on some PC setups and also that existing partitions may move number on some partitioning schemes. Allocating them but setting the reported size to zero would cure the latter problem, but I'm not sure what the right thing to do is about extended partition tables that look like this 0 Partition Table Bootblock ... Extended Partition to disk end Partition HPA-------------------------- (reported disk size) Suspend partition BIOS bits disk end ----- ie /dev/hda5 might be valid but not /dev/hda4 which contains it...