Menion, > I means, the last_lba is read from the responde of read_capacity_10 in > scsiReadCapacity10 via this conversion: > > if (last_lbap) > *last_lbap = get_unaligned_be32(resp + 0); > > so are you sure that if the device return more than about 4TB the > value of this variable will be 0xFFFFFFFFUL? The SCSI SBC spec requires a device to report 0xFFFFFFFF if the capacity is too large to be expressed in the response to a READ CAPACITY(10) command. -- Martin K. Petersen Oracle Linux Engineering