ata_scsi_set_capacity(9)

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.

Author

Jeff Garzik

Author.

From linux-manual-2.6.32 2.6.32-48squeeze6 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.