# hdparm
# Autogenerated from man page /usr/share/man/man8/hdparm.8.gz
complete -c hdparm -s a -d 'Get/set sector count for filesystem (software) read-ahead'
complete -c hdparm -s A -d 'Get/set the IDE drive\'s read-lookahead feature (usually ON by default)'
complete -c hdparm -s b -d 'Get/set bus state'
complete -c hdparm -s B -d 'Get/set Advanced Power Management feature, if the drive supports it'
complete -c hdparm -s c -d 'Get/set (E)IDE 32-bit I/O support'
complete -c hdparm -s C -d 'Check the current IDE power mode status, which will always be one of  unknown…'
complete -c hdparm -s d -d 'Get/set the "using_dma" flag for this drive'
complete -c hdparm -l dco-freeze -d 'DCO stands for Device Configuration Overlay, a way for vendors to selectively…'
complete -c hdparm -l dco-identify -d 'Query and dump information regarding drive configuration settings which can b…'
complete -c hdparm -l dco-restore -d 'Reset all drive settings, features, and accessible capacities back to factory…'
complete -c hdparm -l direct -d 'Use the kernel\'s "O_DIRECT" flag when performing a  -t timing test'
complete -c hdparm -l drq-hsm-error -d 'VERY DANGEROUS, DON\'T EVEN THINK ABOUT USING IT'
complete -c hdparm -s D -d 'Enable/disable the on-drive defect management feature, whereby the drive firm…'
complete -c hdparm -s E -d 'Set cd/dvd drive speed'
complete -c hdparm -s f -d 'Sync and flush the buffer cache for the device on exit'
complete -c hdparm -l fallocate -d 'This option currently works only on ext4 and xfs filesystem types'
complete -c hdparm -l fibmap -d 'When used, this must be the only option given'
complete -c hdparm -l fwdownload -d 'When used, this should be the only option given'
complete -c hdparm -s F -d 'Flush the on-drive write cache buffer (older drives may not implement this)'
complete -c hdparm -s g -d 'Display the drive geometry (cylinders, heads, sectors), the size (in sectors)…'
complete -c hdparm -s h -d 'Display terse usage information (help)'
complete -c hdparm -s H -d 'Read the temperature from some (mostly Hitachi) drives'
complete -c hdparm -s i -d 'Display the identification info which the kernel drivers (IDE, libata) have s…'
complete -c hdparm -l idle-immediate -d 'Issue an ATA IDLE_IMMEDIATE command, to put the drive into a lower power state'
complete -c hdparm -l idle-unload -d 'Issue an ATA IDLE_IMMEDIATE_WITH_UNLOAD command, to unload or park the heads …'
complete -c hdparm -s I -d 'Request identification info directly from the drive, which is displayed in a …'
complete -c hdparm -l Iraw -d 'This option dumps the drive\'s identify data in raw binary to the specified fi…'
complete -c hdparm -l Istdin -d 'This is a special variation on the  -I option, which accepts a drive identifi…'
complete -c hdparm -l Istdout -d 'This option dumps the drive\'s identify data in hex to stdout, in a format sim…'
complete -c hdparm -s J -d 'Get/set the Western Digital (WD) Green Drive\'s "idle3" timeout value'
complete -c hdparm -s k -d 'Get/set the "keep_settings_over_reset" flag for the drive'
complete -c hdparm -s K -d 'Set the drive\'s "keep_features_over_reset" flag'
complete -c hdparm -s L -d 'Set the drive\'s doorlock flag'
complete -c hdparm -s m -d 'Get/set sector count for multiple sector I/O on the drive'
complete -c hdparm -l make-bad-sector -d 'Deliberately create a bad sector (aka.  "media error") on the disk'
complete -c hdparm -s M -d 'Get/set Automatic Acoustic Management (AAM) setting'
complete -c hdparm -s n -d 'Get or set the "ignore_write_errors" flag in the driver'
complete -c hdparm -s N -d 'Get/set max visible number of sectors, also known as the  Host Protected Area…'
complete -c hdparm -l offset -d 'Offsets to given number of GiB (1024*1024*1024) when performing  -t timings o…'
complete -c hdparm -s p -d 'Attempt to reprogram the IDE interface chipset for the specified PIO mode, or…'
complete -c hdparm -s P -d 'Set the maximum sector count for the drive\'s internal prefetch mechanism'
complete -c hdparm -l prefer-ata12 -d 'When using the SAT (SCSI ATA Translation) protocol, hdparm normally prefers t…'
complete -c hdparm -s q -d 'Handle the next option quietly, suppressing normal output (but not error mess…'
complete -c hdparm -s Q -d 'Get or set the device\'s command queue_depth, if supported by the hardware'
complete -c hdparm -s r -d 'Get/set read-only flag for the device'
complete -c hdparm -s R -d 'Get/set Write-Read-Verify feature, if the drive supports it'
complete -c hdparm -l read-sector -d 'Reads from the specified sector number, and dumps the contents in hex to stan…'
complete -c hdparm -l repair-sector -d 'This is an alias for the  --write-sector option.   VERY DANGEROUS'
complete -c hdparm -s s -d 'Enable/disable the power-on in standby feature, if supported by the drive'
complete -c hdparm -s S -d 'Put the drive into idle (low-power) mode, and also set the standby (spindown)…'
complete -c hdparm -l set-sector-size -d 'For drives which support reconfiguring of the Logical Sector Size, this flag …'
complete -c hdparm -s t -d 'Perform timings of device reads for benchmark and comparison purposes'
complete -c hdparm -s T -d 'Perform timings of cache reads for benchmark and comparison purposes'
complete -c hdparm -l trim-sector-ranges -d 'For Solid State Drives (SSDs).   EXCEPTIONALLY DANGEROUS'
complete -c hdparm -l trim-sector-ranges-stdin -d 'Identical to  --trim-sector-ranges above, except the list of lba:count pairs …'
complete -c hdparm -s u -d 'Get/set the interrupt-unmask flag for the drive'
complete -c hdparm -s v -d 'Display some basic settings, similar to -acdgkmur for IDE'
complete -c hdparm -s V -d 'Display program version and exit immediately'
complete -c hdparm -l verbose -d 'Display extra diagnostics from some commands'
complete -c hdparm -s w -d 'Perform a device reset  (DANGEROUS).  Do NOT use this option'
complete -c hdparm -l write-sector -d 'Writes zeros to the specified sector number.   VERY DANGEROUS'
complete -c hdparm -s W -d 'Get/set the IDE/SATA drive\'s write-caching feature'
complete -c hdparm -s X -d 'Set the IDE transfer mode for (E)IDE/ATA drives'
complete -c hdparm -s y -d 'Force an IDE drive to immediately enter the low power consumption  standby mo…'
complete -c hdparm -s Y -d 'Force an IDE drive to immediately enter the lowest power consumption  sleep m…'
complete -c hdparm -s z -d 'Force a kernel re-read of the partition table of the specified device(s)'
complete -c hdparm -o acdgkmur -d 'is assumed.  For "Get/set" options, a query without the optional parameter (e'
complete -c hdparm -o d0
complete -c hdparm -o A0 -d '(disable) or'
complete -c hdparm -o A1 -d '(enable)'
complete -c hdparm -s Z -d 'options can be used to manipulate the IDE power modes'
complete -c hdparm -o d1 -d 'to ensure that the drive itself is programmed for the correct DMA mode, altho…'
complete -c hdparm -o Np -d 'maximum size restriction has also been set'
complete -c hdparm -l fwdownload-mode3 -d ','
complete -c hdparm -l fwdownload-mode3-max -d ', and'
complete -c hdparm -l fwdownload-mode7 -d 'variations on basic'
complete -c hdparm -o dmu -d 'settings over a soft reset, (as done during the error recovery sequence)'
complete -c hdparm -o APSWXZ -d 'over a soft reset (as done during the error recovery sequence)'
complete -c hdparm -o R0 -d '(disable) or'
complete -c hdparm -o R1 -d '(enable)'
complete -c hdparm -l security-help -d 'Display terse usage info for all of the --security-* options'
complete -c hdparm -l security-freeze -d 'Freeze the drive\'s security settings'
complete -c hdparm -l security-prompt-for-password -d 'Prompt for the --security PWD rather than getting from the command line args'
complete -c hdparm -l security-unlock -d 'Unlock the drive, using password PWD'
complete -c hdparm -l security-set-pass -d 'Lock the drive, using password PWD (Set Password) (DANGEROUS)'
complete -c hdparm -l security-disable -d 'Disable drive locking, using password PWD'
complete -c hdparm -l security-erase -d 'Erase (locked) drive, using password PWD (DANGEROUS)'
complete -c hdparm -l security-erase-enhanced -d 'Enhanced erase (locked) drive, using password PWD (DANGEROUS)'
complete -c hdparm -l user-master -d 'Specifies which password (user/master) to select.  Defaults to user password'
complete -c hdparm -l security-mode -d 'Specifies which security mode (high/maximum) to set.  Defaults to high'

