From: Andreas Dilger <adilger@clusterfs.com>
To: "H. J. Lu" <hjl@lucon.org>
Cc: linux kernel <linux-kernel@vger.kernel.org>
Subject: Re: PATCH: Support tera byte disk
Date: Wed, 18 Sep 2002 14:32:47 -0600 [thread overview]
Message-ID: <20020918203247.GS13929@clusterfs.com> (raw)
In-Reply-To: <20020918131120.A5120@lucon.org>
On Sep 18, 2002 13:11 -0700, H. J. Lu wrote:
> For a 1.8TB SCSI HD, kernel reports:
>
> SCSI device sda: -773086208 512-byte hdwr sectors (-395819 MB)
>
> Here is a patch to fix it. BTW, I don't think it will work with > 2TB,
> which requires bigger changes.
There's also a limit where statfs() overflows at 16TB for 4kB block
filesystems... Ask me how I noticed this ;-)
Luckily, it is easy to upshift f_blksz and downshift f_blocks, f_bfree,
and f_bavail to get the data through the statfs interface, and df does
the reverse on the other side. It makes sense to show a larger block
size anyways, so apps potentially do larger I/O requests.
Cheers, Andreas
--
Andreas Dilger
http://www-mddsp.enel.ucalgary.ca/People/adilger/
http://sourceforge.net/projects/ext2resize/
next prev parent reply other threads:[~2002-09-18 20:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-18 20:11 PATCH: Support tera byte disk H. J. Lu
2002-09-18 20:32 ` Andreas Dilger [this message]
2002-09-18 22:23 ` Bryan O'Sullivan
2002-09-18 22:41 ` Andreas Dilger
2002-09-19 10:33 ` Mike Black
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=20020918203247.GS13929@clusterfs.com \
--to=adilger@clusterfs.com \
--cc=hjl@lucon.org \
--cc=linux-kernel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox