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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Simon Arlott
Date: Saturday, August 30, 2008 - 2:02 pm

On 30/08/08 18:45, Matthew Wilcox wrote:

It's unlikely to match what's on the drive, "1000204886016" isn't 1TB 
by any standard.


This looks useful for testing this... do you have an updated version?


I've gone with five digits, it switches to GB at ~98GB, and to TB 
at ~98TB etc.


Somehow this stuff got into net-tools (ifconfig) too, so I have a
patch to remove it from my systems.


Sure, patch will follow this email... it can only go as far as 8192EB 
and then there's not enough space to store more than 2^64 512-byte 
sectors.

(And if you only modify drivers/scsi/sd.c, the kernel make system 
won't recompile sd.o!)

-- 
Simon Arlott



--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] scsi/sd: Fix size output in MB, Simon Arlott, (Sat Aug 30, 7:08 am)
Re: [PATCH] scsi/sd: Fix size output in MB, James Bottomley, (Sat Aug 30, 10:24 am)
Re: [PATCH] scsi/sd: Fix size output in MB, Matthew Wilcox, (Sat Aug 30, 10:45 am)
Re: [PATCH] scsi/sd: Fix size output in MB, Pierre Ossman, (Sat Aug 30, 1:59 pm)
Re: [PATCH] scsi/sd: Fix size output in MB, Simon Arlott, (Sat Aug 30, 2:02 pm)
Re: [PATCH] scsi/sd: Fix size output in MB, James Bottomley, (Sat Aug 30, 2:45 pm)
Re: [PATCH] scsi/sd: Fix size output in MB, Matthew Wilcox, (Sat Aug 30, 2:57 pm)
Re: [PATCH] scsi/sd: Fix size output in MB, Pierre Ossman, (Sat Aug 30, 3:13 pm)
Re: [PATCH] scsi/sd: Fix size output in MB, Simon Arlott, (Sat Aug 30, 3:22 pm)
Re: [PATCH] scsi/sd: Fix size output in MB, Simon Arlott, (Sat Aug 30, 3:24 pm)
Re: [PATCH] scsi/sd: Fix size output in MB, Matthew Wilcox, (Sat Aug 30, 3:36 pm)
Re: [PATCH] scsi/sd: Fix size output in MB, James Smart, (Sun Aug 31, 5:27 am)
[PATCH] mmc_block: use generic helper to print capacities, Pierre Ossman, (Sun Aug 31, 11:54 am)