Subject: Re: lseek(2) & read(2) on raw cd(4) device
To: None <smd@ebone.net, tech-kern@netbsd.org>
From: Sean Doran <smd@ebone.net>
List: tech-kern
Date: 08/24/2000 23:48:56
Ah... some of the "problem" was from (dev/scsipi/cd.c, cdstrategy):

        /*
         * Do bounds checking, adjust transfer. if error, process.
         * If end of partition, just return.
         */
        if (CDPART(bp->b_dev) != RAW_PART &&
            bounds_check_with_label(bp, lp,
            (cd->flags & (CDF_WLABEL|CDF_LABELLING)) != 0) <= 0)
                goto done;

Note the check for whether we are using RAW_PART.  Using the non-raw 
partitions (/dev/rcd0a, /dev/rcd1a) seems to make pax happy when reading.

	Sean.