ULONG
TapeClassPhysicalBlockToLogicalBlock(
IN UCHAR DensityCode,
IN ULONG PhysicalBlockAddress,
IN ULONG BlockLength,
IN BOOLEAN FromBOT
);
TapeClassPhysicalBlockToLogicalBlock translates a physical block address to a pseudological block address. This routine is for SCSI-I devices.
TapeClassPhysicalBlockToLogicalBlock returns the logical block address.
A tape miniclass driver calls TapeClassPhysicalBlockToLogicalBlock to translate a physical block address from a tape device to a logical block address for an application. TapeClassPhysicalBlockToLogicalBlock is not necessary for SCSI-II drivers because SCSI-II devices support logical block addressing.
If a tape miniclass driver calls this routine with an unsupported tape density code, TapeClassPhysicalBlockToLogicalBlock returns the physical block address in the return value, without performing any translation.