From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,4fdb3e85851627ce X-Google-Attributes: gidfee84,public From: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) Subject: Re: Size of raw disks Date: 1995/09/25 Message-ID: <4476ks$o3c@usenet.pa.dec.com>#1/1 X-Deja-AN: 110734944 distribution: world references: organization: Digital Equipment Corporation reply-to: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) newsgroups: comp.unix.osf.osf1 In article , john@avante.WPI.EDU (John Stoffel) writes: >>>>>> "Harald" == Harald Fuchs writes: >In article hf@colibri.de (Harald Fuchs) writes: > >Harald> I hope I did RTFM, but I don't see a way how to find out the >Harald> size of my disks *from within a program*. I know that I can >Harald> do >Harald> scu -f /dev/whatever show cap >Harald> from the command line, but is there a corresponding system call? > >You need to look at the getdiskbyname() and disklabel(4) man pages. > >John To this list, I'll add devio(7), specifically the DEVGETGEOM I/O control. It has the advantage of being able to get the size of LSM volumes. LSM won't construct a lie for the geometry, but it will fill in the size. > > John F. Stoffel - john@wpi.edu - 508-831-5512 - FL 111F > Workstation Specialist - Worcester Polytechnic Institute College Computer Ctr. > Kill your television But, I like my television. It lets me Discover thing, presents to me the Arts and Entertains me and even has a channel which Teaches me. Ok, so there are three versions of HBO to rot my brain... > -- Alan Rollow alan@nabeth.cxo.dec.com