Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* daddr_t definition in <sys/types.h>
@ 1995-01-31  0:14 George Armhold
  1995-01-31 22:00 ` Peter da Silva
  0 siblings, 1 reply; 2+ messages in thread
From: George Armhold @ 1995-01-31  0:14 UTC (permalink / raw)



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?

-George
-- 
	     High Performance Computing and Design group
                 Internet: armhold@klinzhai.rutgers.edu
               UUCP: {backbone}!rutgers!klinzhai!armhold
                    BITNET: armhold@PISCES.BITNET


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: daddr_t definition in <sys/types.h>
  1995-01-31  0:14 daddr_t definition in <sys/types.h> George Armhold
@ 1995-01-31 22:00 ` Peter da Silva
  0 siblings, 0 replies; 2+ messages in thread
From: Peter da Silva @ 1995-01-31 22:00 UTC (permalink / raw)


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?"


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1995-01-31 22:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-01-31  0:14 daddr_t definition in <sys/types.h> George Armhold
1995-01-31 22:00 ` Peter da Silva

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