ata_scsi_set_capacity9
Adjust device capacity
Usage
sector_t ata_scsi_set_capacity(struct scsi_device * sdev, sector_t new_capacity);
Arguments
sdev
SCSI device to adjust device capacity for
new_capacity
new target capacity
Overview
This function is called if a partition on sdev extends beyond the end of the device. It requests EH to unlock HPA and returns the possibly adjusted capacity.
Locking
Defined by the SCSI layer. Might sleep.
Returns
New capacity if adjusted successfully. 0 if device is not found.