From mboxrd@z Thu Jan 1 00:00:00 1970 From: Al Viro Subject: Re: [PATCH 2/4] partitions: add ->set_capacity block device method Date: Sat, 6 Jun 2009 09:42:47 +0100 Message-ID: <20090606084247.GA19924@ZenIV.linux.org.uk> References: <20090531143911.7164.26834.sendpatchset@localhost.localdomain> <20090531143924.7164.25770.sendpatchset@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from zeniv.linux.org.uk ([195.92.253.2]:58740 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752644AbZFFImq (ORCPT ); Sat, 6 Jun 2009 04:42:46 -0400 Content-Disposition: inline In-Reply-To: <20090531143924.7164.25770.sendpatchset@localhost.localdomain> Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Bartlomiej Zolnierkiewicz Cc: linux-ide@vger.kernel.org, "Andries E. Brouwer" , linux-kernel@vger.kernel.org, Robert Hancock , Frans Pop On Sun, May 31, 2009 at 04:39:24PM +0200, Bartlomiej Zolnierkiewicz wrote: > From: Bartlomiej Zolnierkiewicz > Subject: [PATCH] partitions: add ->set_capacity block device method > > * Add ->set_capacity block device method and use it in rescan_partitions() > to attempt enabling native capacity of the device upon detecting the > partition which exceeds device capacity. > > * Add GENHD_FL_NATIVE_CAPACITY flag to try limit attempts of enabling > native capacity during partition scan. > > Together with the consecutive patch implementing ->set_capacity method in > ide-gd device driver this allows automatic disabling of Host Protected Area > (HPA) if any partitions overlapping HPA are detected. > > Cc: Robert Hancock > Cc: Frans Pop > Cc: "Andries E. Brouwer" > Cc: Al Viro Acked-by: Al Viro