All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anders Henke <anders.henke@sysiphus.de>
To: Andries.Brouwer@cwi.nl
Cc: linux-kernel@vger.kernel.org, marcelo@conectiva.com.br
Subject: Re: using 2 TB  in real life
Date: Fri, 13 Dec 2002 15:43:17 +0100	[thread overview]
Message-ID: <20021213144317.GA21991@schlund.de> (raw)
In-Reply-To: <UTC200212122315.gBCNFdp22965.aeb@smtp.cwi.nl>

On December 13th 2002, Andries.Brouwer@cwi.nl wrote:
> > SCSI device sdb: -320126976 512-byte hdwr sectors (-163904 MB)
> 
> Yes, the code in 2.4.20 works up to 30 bits.
> A slight modification works up to 31 bits.

It works up to less than 30 bits - a 0.9 TB Device shows up as

SCSI device sdb: 1806745600 512-byte hdwr sectors (-174457 MB)

while a 480 GB Device (correctly) shows up this way:

SCSI device sda: 961818624 512-byte hdwr sectors (492451 MB)

At 0.5 TB (29 bits) the first problem occurs: negative size.
At 1 T (30 bits), the sector count also becomes negative.

Your patch (thank you!) does fix both problems and up to 1.9 TB,
everything works as expected:

SCSI device sdb: 3974840320 512-byte hdwr sectors (2035118 MB)

Yes, it's purely cosmetical, but should be included in the main tree.


Regards,

Anders
-- 
http://sysiphus.de

  reply	other threads:[~2002-12-13 14:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-12 23:15 using 2 TB in real life Andries.Brouwer
2002-12-13 14:43 ` Anders Henke [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-12-12 11:12 Anders Henke
2002-12-12 12:03 ` Mike Black
2002-12-12 17:22   ` Bryan O'Sullivan
2002-12-12 17:48     ` Anders Henke
2002-12-12 19:03       ` Bryan O'Sullivan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021213144317.GA21991@schlund.de \
    --to=anders.henke@sysiphus.de \
    --cc=Andries.Brouwer@cwi.nl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo@conectiva.com.br \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.