On Mon, 10 Jan 2000, Theodore Y. Ts'o wrote:
>There may be an issue for some block device drivers that might use 512
>byte sectors (such as IDE disks) on a 32-bit system, but that won't be
>an problem if you're using an MD device to put together the disks for
>the > 2TB filesystem.
Wrong, because even if the blockdevice where the filesystem is mounted has
an _hardblocksize_ of 4k the bh->b_rsector information will be stored in
512 bytes unit despite of the hardblocksize.
Basically the line you are missing is:
bh[i]->b_rsector=bh[i]->b_blocknr*(bh[i]->b_size >> 9);
in ll_rw_block.c.
Anyway the issue is not a problem for ext2.
But it can be a problem for other filesystems or ll_rw_block soft-layers
that allows the usage of blockdevices larger than 2048T.
But again: it's am minor problem, the admin shouldn't simply do that.
The admin must know that the maximal size of a blockdevice for a 32bit
arch is:
2^32*512 bytes = 2048 Terabyte.
If somebody has a blockdevice larger than 2048T, he should definitely know
that 8)
Andrea