1DAXIO(1)                   PMDK Programmer's Manual                   DAXIO(1)
2
3
4

NAME

6       daxio -- Perform I/O on Device DAX devices or zero a Device DAX device
7

SYNOPSIS

9              $ daxio [<options>]
10

DESCRIPTION

12       The  daxio  utility performs I/O on Device DAX devices or zero a Device
13       DAX device.  Since the standard I/O APIs (read/write)  cannot  be  used
14       with  Device DAX, data transfer is performed on a memory-mapped device.
15       The daxio may be used to dump Device DAX data to a file,  restore  data
16       from  a  backup copy, move/copy data to another device or to erase data
17       from a device.
18
19       There must be at least one Device DAX device involved either as the in‐
20       put or output.  If input or output is not specified, it will default to
21       stdin or stdout respectively.
22
23       No length specified will default to input file/device length or to  the
24       output file/device length, if input is a special char file or stdin.
25
26       For  a Device DAX device, daxio will attempts to clear badblocks within
27       range of writes before performing the I/O.
28

OPTIONS

30       -i, --input Input device or file to read from.
31
32       -o, --output Output device or file to write to.
33
34       -z, --zero Zero the output device for len size, or the entire device if
35       no length was provided.  The output device must be a Device DAX device.
36
37       -l, --len  The  length in bytes to perform the I/O.  To make passing in
38       size easier for kibi, mebi, gibi, and tebi bytes, len may include  unit
39       suffix.   The len format must be compliant with the format specified in
40       IEC 80000-13, IEEE 1541 or the Metric Interchange Format.  These  stan‐
41       dards  accept SI units with obligatory B - kB, MB, GB, ...  (multiplier
42       by 1000) suffixes, and IEC units with optional "iB" -  KiB,  MiB,  GiB,
43       ..., K, M, G, ...  (multiplier by 1024) suffixes.
44
45       -s, --seek  The  number of bytes to skip over on the output before per‐
46       forming a write.  The same suffixes are accepted as for len.
47
48       -k, --skip The number of bytes to skip over on the  input  before  per‐
49       forming a read.  The same suffixes are accepted as for len.
50
51       -V, --version
52
53       Prints the version of daxio.
54
55       -h, --help
56
57       Prints synopsis and list of options.
58

EXAMPLE

60              # daxio --zero /dev/dax1.0
61
62              # daxio --input=/dev/dax1.0 --output=/home/myfile --len=2M --seek=4096
63
64              # cat /dev/zero | daxio --output=/dev/dax1.0
65
66              # daxio --input=/dev/zero --output=/dev/dax1.0 --skip=4096
67

SEE ALSO

69       daxctl(1), ndctl(1) and <http://pmem.io>
70
71
72
73PMDK - daxio version 1.3          2018-03-07                          DAXIO(1)
Impressum