mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Peter Samuelson <peter@cadcamlab.org>
To: Reto Baettig <baettig@scs.ch>
Cc: Linux Kernel Mailinglist <linux-kernel@vger.kernel.org>
Subject: Re: 64bit offsets for block devices ?
Date: Wed, 6 Dec 2000 22:07:57 -0600	[thread overview]
Message-ID: <20001206220757.N6567@cadcamlab.org> (raw)
In-Reply-To: <3A2E5227.693121F@scs.ch>
In-Reply-To: <3A2E5227.693121F@scs.ch>; from baettig@scs.ch on Wed, Dec 06, 2000 at 06:50:15AM -0800


[Reto Baettig]
> Imagine we have a virtual disk which provides a 64bit (sparse)
> address room.  Unfortunately we can not use it as a block device
> because in a lot of places (including buffer_head structure), we're
> using a long or even an int for the block number.

Actually it should be 'unsigned long'.  If anyone uses 'long' or 'int',
I guess it's a bug.

> Is there any way of getting a standardized way of doing I/O to a block
> device which could handle 64bit addresses for the block number?

Yeah, tell the world you explicitly don't support 32-bit architectures.
Linux supports (to some degree) at least four 64-bit architectures,
where 'unsigned long' is nice and big.  And I imagine support for
POWER3 and HP-PA 2.0w are coming in the not-so-distant future.

Either that, or (since you say the address space is sparse) do your own
block mapping within the driver.  If you still need more than 32 bits,
you'll have to fudge it with multiple virtual devices.

> Don't you think that we will run into problems anyway because soon
> there will be raid systems with a couple of Terrabytes of space to
> waste for mp3's ;-)

A couple of terabytes is fine.  That's 32 bits of blocks.  *More* than
that, now, we've got a problem.

Peter
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

  reply	other threads:[~2000-12-07  4:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-06 14:50 Reto Baettig
2000-12-07  4:07 ` Peter Samuelson [this message]
2000-12-07  6:16   ` Brian Pomerantz
2000-12-07 13:24 ` Alan Cox
2000-12-07 16:41 ` Stephen C. Tweedie

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=20001206220757.N6567@cadcamlab.org \
    --to=peter@cadcamlab.org \
    --cc=baettig@scs.ch \
    --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

all inboxes | Powered by JetHome®