Re: [PATCH] scsi/sd: Fix size output in MB

Pierre Ossman
2008-08-30T21:00:29Z

[-- Attachment #1: Type: text/plain, Size: 811 bytes --]

On Sat, 30 Aug 2008 11:45:16 -0600
Matthew Wilcox <matthew@wil.cx> 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. :)

--
-- Pierre Ossman

Linux kernel, MMC maintainer http://www.kernel.org
rdesktop, core developer http://www.rdesktop.org

WARNING: This correspondence is being monitored by the
Swedish government. Make sure your server uses encryption
for SMTP traffic and consider using PGP for end-to-end
encryption.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]