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 attempt to clear bad blocks within
27       the range of writes before performing the I/O (it can be turned off us‐
28       ing the `–clear-bad-blocks=no' option).
29

OPTIONS

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

EXAMPLE

64              # daxio --zero /dev/dax1.0
65
66              # daxio --input=/dev/dax1.0 --output=/home/myfile --len=2M --seek=4096
67
68              # cat /dev/zero | daxio --output=/dev/dax1.0
69
70              # daxio --input=/dev/zero --output=/dev/dax1.0 --skip=4096
71

SEE ALSO

73       daxctl(1), ndctl(1) and <http://pmem.io>
74
75
76
77PMDK - daxio version 1.4          2019-03-01                          DAXIO(1)
Impressum