* Size of raw disks
@ 1995-09-25 4:00 Harald Fuchs
1995-09-25 4:00 ` John Stoffel
0 siblings, 1 reply; 3+ messages in thread
From: Harald Fuchs @ 1995-09-25 4:00 UTC (permalink / raw)
I hope I did RTFM, but I don't see a way how to find out the size of
my disks *from within a program*. I know that I can do
scu -f /dev/whatever show cap
from the command line, but is there a corresponding system call?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Size of raw disks
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.
0 siblings, 1 reply; 3+ messages in thread
From: John Stoffel @ 1995-09-25 4:00 UTC (permalink / raw)
>>>>> "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
John F. Stoffel - john@wpi.edu - 508-831-5512 - FL 111F
Workstation Specialist - Worcester Polytechnic Institute College Computer Ctr.
Kill your television
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: Size of raw disks
1995-09-25 4:00 ` John Stoffel
@ 1995-09-25 4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
0 siblings, 0 replies; 3+ messages in thread
From: Alan Rollow - Dr. File System's Home for Wayward Inodes. @ 1995-09-25 4:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1995-09-25 4:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox