bug in reading from disk partitions
Jeremy Higdon
jeremy at perf2.asd.sgi.com
Mon Dec 10 15:21:51 AEST 1990
In article <1990Dec3.151353.21737 at alias.uucp>, chk%alias at csri.toronto.edu (C. Harald Koch) writes:
> In <76400 at sgi.sgi.com> jeremy at 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.
More information about the Comp.sys.sgi
mailing list