ANDROID: scsi: sd_zbc: Work around non-compliance
ZBC requires that every LBA is associated with a zone. Some zoned
devices do not associate a zone with the last LBA. Let the kernel use
these devices instead of rejecting them as follows:
sd 0:0:0:4: [sde] 59552768 4096-byte logical blocks: (244 GB/227 GiB)
sde: detected capacity change from 0 to 476422144
sd 0:0:0:4: [sde] REPORT ZONES report invalid length 0
sde: failed to revalidate zones
sde: detected capacity change from 476422144 to 0
This patch will be reverted after the firmware bug has been fixed.
Bug: 258289823
Change-Id: Ic7f13d1742bdd144fd4df2d37a3ed3dd93e65a2e
Signed-off-by:
Bart Van Assche <bvanassche@google.com>
Loading
Please sign in to comment