Name

ata_scsi_set_capacity — adjust device capacity

Synopsis

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

Description

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.