Skip to content

Commit e4e1e7a

Browse files
committed
pmdk: automatic docs update for 'stable-2.0'
1 parent a270c06 commit e4e1e7a

File tree

79 files changed

+10501
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+10501
-0
lines changed
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
---
2+
draft: false
3+
slider_enable: true
4+
description: ""
5+
disclaimer: "The contents of this web site and the associated <a href=\"https://github.com/pmem\">GitHub repositories</a> are BSD-licensed open source."
6+
aliases: ["daxio.1.html"]
7+
title: "daxio | PMDK"
8+
header: "daxio version 1.4"
9+
---
10+
11+
[comment]: <> (SPDX-License-Identifier: BSD-3-Clause)
12+
[comment]: <> (Copyright 2018, Intel Corporation)
13+
14+
[comment]: <> (daxio.1 -- man page for daxio)
15+
16+
[NAME](#name)<br />
17+
[SYNOPSIS](#synopsis)<br />
18+
[DESCRIPTION](#description)<br />
19+
[OPTIONS](#options)<br />
20+
[EXAMPLE](#example)<br />
21+
[SEE ALSO](#see-also)<br />
22+
23+
# NAME #
24+
25+
**daxio** - Perform I/O on Device DAX devices or zero a Device DAX device
26+
27+
# SYNOPSIS #
28+
29+
```
30+
$ daxio [<options>]
31+
```
32+
33+
# DESCRIPTION #
34+
35+
The daxio utility performs I/O on Device DAX devices or zero
36+
a Device DAX device. Since the standard I/O APIs (read/write) cannot be used
37+
with Device DAX, data transfer is performed on a memory-mapped device.
38+
The **daxio** may be used to dump Device DAX data to a file, restore data from
39+
a backup copy, move/copy data to another device or to erase data from
40+
a device.
41+
42+
There must be at least one Device DAX device involved either as the input
43+
or output. If input or output is not specified, it will default to stdin
44+
or stdout respectively.
45+
46+
No length specified will default to input file/device length or to the
47+
output file/device length, if input is a special char file or stdin.
48+
49+
For a Device DAX device, **daxio** will attempt to clear bad blocks within
50+
the range of writes before performing the I/O (it can be turned off using
51+
the '--clear-bad-blocks=no' option).
52+
53+
# OPTIONS #
54+
55+
`-i, --input`
56+
Input device or file to read from.
57+
58+
`-o, --output`
59+
Output device or file to write to.
60+
61+
`-z, --zero`
62+
Zero the output device for *len* size, or the entire device if no
63+
length was provided. The output device must be a Device DAX device.
64+
65+
`-b, --clear-bad-blocks=<yes|no>`
66+
Clear bad blocks within the range of writes before performing the I/O
67+
(default: yes).
68+
69+
`-l, --len`
70+
The length in bytes to perform the I/O. To make passing in size easier
71+
for kibi, mebi, gibi, and tebi bytes, *len* may include unit suffix.
72+
The *len* format must be compliant with the format specified in IEC 80000-13,
73+
IEEE 1541 or the Metric Interchange Format. These standards accept SI units
74+
with obligatory B - kB, MB, GB, ... (multiplier by 1000) suffixes,
75+
and IEC units with optional "iB" - KiB, MiB, GiB, ..., K, M, G, ...
76+
(multiplier by 1024) suffixes.
77+
78+
`-s, --seek`
79+
The number of bytes to skip over on the output before performing a write.
80+
The same suffixes are accepted as for *len*.
81+
82+
`-k, --skip`
83+
The number of bytes to skip over on the input before performing a read.
84+
The same suffixes are accepted as for *len*.
85+
86+
`-V, --version`
87+
88+
Prints the version of **daxio**.
89+
90+
`-h, --help`
91+
92+
Prints synopsis and list of options.
93+
94+
# EXAMPLE #
95+
96+
```
97+
# daxio --zero /dev/dax1.0
98+
99+
# daxio --input=/dev/dax1.0 --output=/home/myfile --len=2M --seek=4096
100+
101+
# cat /dev/zero | daxio --output=/dev/dax1.0
102+
103+
# daxio --input=/dev/zero --output=/dev/dax1.0 --skip=4096
104+
```
105+
106+
# SEE ALSO #
107+
108+
**daxctl**(1), **ndctl**(1)
109+
and **<https://pmem.io>**

0 commit comments

Comments
 (0)