From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,8c9addaed42562f1 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1995-01-31 17:31:26 PST Newsgroups: comp.unix.osf.osf1 Path: swrinde!news.uh.edu!uuneo.neosoft.com!nmtigw!peter From: peter@nmti.com (Peter da Silva) Subject: Re: daddr_t definition in Message-ID: Sender: peter@nmti.com (peter da silva) Organization: Network/development platform support, NMTI References: <3gjve3$4ks@tenebris.rutgers.edu> Date: Tue, 31 Jan 1995 22:00:14 GMT In article <3gjve3$4ks@tenebris.rutgers.edu>, George Armhold 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?"