Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752070AbYLWMce (ORCPT ); Tue, 23 Dec 2008 07:32:34 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751007AbYLWMcU (ORCPT ); Tue, 23 Dec 2008 07:32:20 -0500 Received: from smtp-out003.kontent.com ([81.88.40.217]:50308 "EHLO smtp-out003.kontent.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750984AbYLWMcS (ORCPT ); Tue, 23 Dec 2008 07:32:18 -0500 From: Oliver Neukum Organization: Novell To: Robert Hancock Subject: Re: Checking a USB drive's capacity Date: Tue, 23 Dec 2008 13:32:32 +0100 User-Agent: KMail/1.9.9 Cc: linux-kernel@vger.kernel.org, Jens Axboe References: <49506E5B.5090604@shaw.ca> In-Reply-To: <49506E5B.5090604@shaw.ca> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200812231332.32818.oliver@neukum.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 825 Lines: 19 Am Dienstag, 23. Dezember 2008 05:51:39 schrieb Robert Hancock: > It seems to me that the safest solution would be to mark USB storage > devices as unsafe for last-sector partition table probing, like some > kind of CAPACITY_DUBIOUS flag, causing it to be skipped on these > devices, at least by default. After all, it would seem quite unusual to > see anything other than a DOS-style partition table on a USB storage > device (or else no partition table at all). That would not help if user space (especially udev helpers) go for the end of the device. Regards Oliver -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/