Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
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	[thread overview]
Message-ID: <4476ks$o3c@usenet.pa.dec.com> (raw)
In-Reply-To: x33fdk5334.fsf@avante.WPI.EDU


In article <x33fdk5334.fsf@avante.WPI.EDU>, john@avante.WPI.EDU (John Stoffel) writes:

>>>>>> "Harald" == Harald Fuchs <hf@colibri.de> writes:
>In article <puybvdhruz.fsf@themroc.colibri.de> 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




      reply	other threads:[~1995-09-25  4:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-09-25  4:00 Size of raw disks Harald Fuchs
1995-09-25  4:00 ` John Stoffel
1995-09-25  4:00   ` Alan Rollow - Dr. File System's Home for Wayward Inodes. [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