DAXIO(1)

πŸ“¦
version 1.13.1 Β· 6 versions
, in debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

🌸 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 for len size, 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, len may include unit suffix. The len format 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 for len. ⏭️
  • -k, --skip β€” The number of bytes to skip over on the input before performing a read. The same suffixes are accepted as for len. ⏭️
  • -V, --version β€” Prints the version of daxio. 🏷️
  • -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