Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: peter@nmti.com (Peter da Silva)
Subject: Re: daddr_t definition in <sys/types.h>
Date: Tue, 31 Jan 1995 22:00:14 GMT	[thread overview]
Message-ID: <id.FLYG1.DRF@nmti.com> (raw)
In-Reply-To: 3gjve3$4ks@tenebris.rutgers.edu

In article <3gjve3$4ks@tenebris.rutgers.edu>,
George Armhold <armhold@tenebris.rutgers.edu> wrote:
> I'm trying to build a BSD dump/restore suite and I've run into some
> problems with daddr_t.  In most systems this is defined to be a long
> in /usr/include/sys/types.h.  OSF/1 defines it as an int.  Perhaps I
> am misunderstanding the intended use of daddr_t, but it seems to be
> used for seeking to file offsets, so shouldn't this be a long?

daddr_t is 32 bits.

In OSF/1, a long is 64 bits.

I would have thought that OSF/1 would have gone to 64 bits for daddr_t,
but apparently not. A 32 bit daddr_t will allow volumes up to 2^32 blocks
or 2^42 bytes. By the time terabyte drives become available this will
have to be changed. Even with the LVM you'd need about 2^7 drives on a
system to exceed daddr_t today.
-- 
Peter da Silva                                            `-_-'
Network Management Technology Incorporated                 'U`
1601 Industrial Blvd.     Sugar Land, TX  77478  USA
+1 713 274 5180                       "Hast du heute schon deinen wolf umarmt?"


      reply	other threads:[~1995-01-31 22:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-01-31  0:14 daddr_t definition in <sys/types.h> George Armhold
1995-01-31 22:00 ` Peter da Silva [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox