---
name: "ata_set_max_sectors"
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_set_max_sectors"
---

# ata\_set\_max\_sectors(9)

Set max sectors

## NAME

ata\_set\_max\_sectors - Set max sectors

## SYNOPSIS

**int ata\_set\_max\_sectors(struct ata\_device \*** *dev***, u64** *new\_sectors***);**

## ARGUMENTS

*dev*

target device

*new\_sectors*

new max sectors value to set for the device

## DESCRIPTION

Set max sectors of *dev* to *new\_sectors*.

## RETURN

0 on success, -EACCES if command is aborted or denied (due to previous non-volatile SET\_MAX) by the drive. -EIO on other errors.

## AUTHOR

**Jeff Garzik**

Author.

## COPYRIGHT
