DAXIO(1)
πΈ DAXIO(1) β PMDK Programmer's Manual πΈ
π NAME π
daxio β Perform I/O on Device DAX devices or zero a Device DAX device. β¨
π¦ SYNOPSIS π¦
$ daxio [<options>]
π DESCRIPTION π
okay so bestie, daxio performs I/O on Device DAX devices or zeroes a Device DAX device. Since the standard I/O APIs (read/write) cannot be used with Device DAX, data transfer is performed on a memory-mapped device. No cap. ππ₯
You can use daxio to dump Device DAX data to a file, restore data from a backup copy, move/copy data to another device or to erase data from a device. Itβs highkey giving main character energy for backups and erases. π
There must be at least one Device DAX device involved either as the input or output. If input or output is not specified, it will default to stdin or stdout respectively. π«Ά
If no length is specified, it will default to the input file/device length, or to the output file/device length if the input is a special char file or stdin. π
For a Device DAX device, daxio will attempt to clear bad blocks within the range of writes before performing the I/O. It can be turned off using the βclear-bad-blocks=no option. π§Ή
π OPTIONS π
-i,--inputβ Input device or file to read from. π«Ά-o,--outputβ Output device or file to write to. π-z,--zeroβ Zero the output device forlensize, or the entire device if no length was provided. The output device must be a Device DAX device. β¨-b,--clear-bad-blocks=<yes|no>β Clear bad blocks within the range of writes before performing the I/O (default:yes). π§Ή-l,--lenβ The length in bytes to perform the I/O. To make passing in size easier for kibi, mebi, gibi, and tebi bytes,lenmay include unit suffix. Thelenformat must be compliant with the format specified in IEC 80000-13, IEEE 1541 or the Metric Interchange Format. These standards accept SI units with obligatory B -kB,MB,GB, ... (multiplier by 1000) suffixes, and IEC units with optional βiBβ -KiB,MiB,GiB, ...,K,M,G, ... (multiplier by 1024) suffixes. π’-s,--seekβ The number of bytes to skip over on the output before performing a write. The same suffixes are accepted as forlen. βοΈ-k,--skipβ The number of bytes to skip over on the input before performing a read. The same suffixes are accepted as forlen. βοΈ-V,--versionβ Prints the version ofdaxio. π·οΈ-h,--helpβ Prints synopsis and list of options. π
π EXAMPLE π
Run these and watch them slay: π
# daxio --zero /dev/dax1.0
# daxio --input=/dev/dax1.0 --output=/home/myfile --len=2M --seek=4096
# cat /dev/zero | daxio --output=/dev/dax1.0
# daxio --input=/dev/zero --output=/dev/dax1.0 --skip=4096
π SEE ALSO π
daxctl(1), ndctl(1) and <https://pmem.io> β go check them out, bestie. πΈ
xoxo bestie β PMDK - Β· 2023-05-31 π
π¦ where this page comes from
- debian trixie: pmdk-tools 1.13.1-1.1+b1 Β· BSD-3-Clause
- ubuntu noble: pmdk-tools 1.13.1-1.1ubuntu2 Β· BSD-3-Clause
- ubuntu questing: pmdk-tools 1.13.1-1.1ubuntu3
- ubuntu resolute: pmdk-tools 1.13.1-1.1ubuntu4 Β· BSD-3-Clause
- ubuntu stonking: pmdk-tools 1.13.1-1.1ubuntu5 Β· BSD-3-Clause
- π the page's license: BSD-3-Clause
- Copyright 2018, Intel Corporation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms