DKIOCCDREAD not returning expected number of bytes