Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759184AbYH3Vp7 (ORCPT ); Sat, 30 Aug 2008 17:45:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752887AbYH3Vpu (ORCPT ); Sat, 30 Aug 2008 17:45:50 -0400 Received: from accolon.hansenpartnership.com ([76.243.235.52]:48573 "EHLO accolon.hansenpartnership.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754555AbYH3Vpt (ORCPT ); Sat, 30 Aug 2008 17:45:49 -0400 Subject: Re: [PATCH] scsi/sd: Fix size output in MB From: James Bottomley To: Pierre Ossman Cc: Matthew Wilcox , Simon Arlott , Linux Kernel Mailing List , linux-scsi In-Reply-To: <20080830225950.4828dcf6@mjolnir.drzeus.cx> References: <48B9546B.4010004@simon.arlott.org.uk> <1220117091.3615.3.camel@localhost.localdomain> <20080830174516.GD1239@parisc-linux.org> <20080830225950.4828dcf6@mjolnir.drzeus.cx> Content-Type: text/plain Date: Sat, 30 Aug 2008 16:45:49 -0500 Message-Id: <1220132749.3615.14.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 (2.22.3.1-1.fc9) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 910 Lines: 25 On Sat, 2008-08-30 at 22:59 +0200, Pierre Ossman wrote: > On Sat, 30 Aug 2008 11:45:16 -0600 > Matthew Wilcox wrote: > > > > > 2. We should report in GB or TB when appropriate. The exact definition > > of 'appropriate' is going to vary from person to person. Might I > > suggest that we should report between two and four significant digits. > > eg 9543 MB is ok, 10543 MB should be 10 GB. > > > > I've been looking at doing something like this for the mmc_block > driver, so a generic helper is welcome. :) Does MMC have the 10^3 requirement like SCSI/ATA disks do, or can you use 2^10 like standard computer stuff for capacities? James -- 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/