lkml.org 
[lkml]   [2002]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: PATCH: Support tera byte disk
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/

-
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/

\
 
 \ /
  Last update: 2005-03-22 13:25    [W:0.090 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site