Main index | Section 8 | Options |
The following options are available:
| |
Do not actually erase anything but show what it would do (dry run).
Implies
| |
| |
Perform the operation.
Overrides
| |
| |
offset[K|k|M|m|G|g|T|t] | |
| |
offset[K|k|M|m|G|g|T|t]Specify the length
The argument may be suffixed with one of K, M, G or T (either upper or lower case) to indicate a multiple of Kilobytes, Megabytes, Gigabytes or Terabytes respectively. | |
| |
Do not output anything except of possible error messages (quiet mode).
Overrides
| |
| |
Uses the length of given rfile as length of the region to erase. The whole device is erased by default. | |
| |
Show offset and length of actual region being erased, in bytes. | |
Later options override previous ones.
Note that actual success of the operation depends of underlying device driver such as ada(4), da(4) and others. Refer to corresponding manual pages for detail on possible caveats in low level support for ATA TRIM or SCSI UNMAP commands.
EX_USAGE | The specified offset or length of the region is incorrect. |
EX_OSERR | There is no enough memory to proceed. |
EX_NOINPUT | The specified rfile cannot be opened (perhaps, it does not exist). |
EX_IOERR | The specified rfile cannot be examined for its size due to some system input/output error. |
EX_DATAERR | The specified rfile is not regular file, directory nor special device, so its size cannot be examined. |
EX_UNAVAILABLE | |
The specified rfile is special device file not supporting DIOCGMEDIASIZE ioctl(2) (probably not a disk), so its size cannot be examined. | |
TRIM (8) | January 18, 2019 |
Main index | Section 8 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.