'\" t .\" Title: ata_hpa_resize .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: June 2017 .\" Manual: libata Core Internals .\" Source: Kernel Hackers Manual 4.11.3 .\" Language: English .\" .TH "ATA_HPA_RESIZE" "9" "June 2017" "Kernel Hackers Manual 4\&.11\&" "libata Core Internals" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" ata_hpa_resize \- Resize a device with an HPA set .SH "SYNOPSIS" .HP \w'int\ ata_hpa_resize('u .BI "int ata_hpa_resize(struct\ ata_device\ *\ " "dev" ");" .SH "ARGUMENTS" .PP \fIstruct ata_device * dev\fR .RS 4 Device to resize .RE .SH "DESCRIPTION" .PP Read the size of an LBA28 or LBA48 disk with HPA features and resize it if required to the full size of the media\&. The caller must check the drive has the HPA feature set enabled\&. .SH "RETURN" .PP 0 on success, \-errno on failure\&. .SH "AUTHOR" .PP \fBJeff Garzik\fR .RS 4 Author. .RE .SH "COPYRIGHT" .br