On 04/04/2016 03:00 AM, Hannes Reinecke wrote:
+static int +sd_zbc_report_zones(struct scsi_disk *sdkp, sector_t start_lba, + unsigned char *buffer, int bufflen ) +{ [ ... ] + put_unaligned_be64(start_lba, &cmd[2]); + put_unaligned_be32(bufflen, &cmd[10]);
The argument "sector_t start_lba" is confusing me. Isn't a number either a sector number or an LBA? Shouldn't that number be shifted right by ilog2(sdp->sector_size) - 9 before storing it in the CDB?
Bart. -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html