Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!ucsd!pacbell.com!ames!sgi!jeremy@perf2.asd.sgi.com From: jeremy@perf2.asd.sgi.com (Jeremy Higdon) Newsgroups: comp.sys.sgi Subject: Re: bug in reading from disk partitions Message-ID: <77577@sgi.sgi.com> Date: 10 Dec 90 04:21:51 GMT References: <1990Nov27.031543.16150@alias.uucp> <76400@sgi.sgi.com> <1990Dec3.151353.21737@alias.uucp> Sender: guest@sgi.sgi.com Organization: Silicon Graphics, Inc., Mountain View, CA Lines: 18 In article <1990Dec3.151353.21737@alias.uucp>, chk%alias@csri.toronto.edu (C. Harald Koch) writes: > In <76400@sgi.sgi.com> jeremy@perf2.asd.sgi.com (Jeremy Higdon) writes: > > >The partition information is in the disk label (the first 512 bytes of > >the volume header (??????vh) partition). See /usr/include/sys/dvh.h and > >vh(7m) for more info. > > Do you have any idea how non-portable that is? It depends too much on both > the hardware platform and the OS version. > > [ . . . .] The question I was responding to was how to get partition sizes. The preferred way, by the way, is to use the DIOCGETVH ioctl, as Dave Olson pointed out later. I was not commenting on the merits of returning short reads vs. errors at the end of a partition.