---
name: "ata_hpa_resize"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/ata_hpa_resize"
---

# ata\_hpa\_resize(9)

Resize a device with an HPA set

## NAME

ata\_hpa\_resize - Resize a device with an HPA set

## SYNOPSIS

**int ata\_hpa\_resize(struct ata\_device \*** *dev***);**

## ARGUMENTS

*dev*

Device to resize

## DESCRIPTION

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.

## RETURN

0 on success, -errno on failure.

## AUTHOR

**Jeff Garzik**

Author.

## COPYRIGHT
