summaryrefslogtreecommitdiffstats
path: root/Documentation/nvme-lnvm-diag-bbtbl.txt
blob: 7324807cfdd71ca3eb64d16afd1d608c6bf16fa0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
nvme-lnvm-diag-bbtbl(1)
=======================

NAME
----
nvme-lnvm-diag-bbtbl - Diagnose the bad block table

SYNOPSIS
--------
[verse]
'nvme lnvm-diag-bbtbl' [--namespace-id=<NUM> | -n <NUM>]
			[--channel-id=<CHID> | -c <CHID>]
			[--lun-id=<LUNID> | -l <LUNID>]
			[--raw-binary | -b]

DESCRIPTION
-----------
Retrieve the bad block table for a given channel and lun.

The statistics will be shown in the default case, and the actual output bad
block information can be retrieved when --raw-binary is passed.

The raw binary output follows this format:

Channel 0, LUN0 (Dual plane flash)

Byte 0 -> Plane 0, Block 0
Byte 1 -> Plane 1, Block 0
Byte 2 -> Plane 0, Block 1
...

OPTIONS
-------
--namespace-id=<NUM>::
-n <NUM>::
	Namespace id to use

--channel-id=<NUM>::
-c::
	Channel id

--lun-id=<NUM>::
-l::
	LUN id

--raw-binary::
-b::
	Returns the bad block table in binary form without statistics.

EXAMPLES
--------
* Retrieve bad block table statistics for physical device nvme0, channel 0, and
lun 0:
------------
# nvme lnvm-diag-bbtbl /dev/nvme0 -c 0 -n 0
------------

* Display the bad block table in raw form without statistics for same query:
------------
# nvme lnvm-diag-bbtbl /dev/nvme0 -c 0 -n 0 -b | hexdump
------------

NVME
----
Part of the nvme-user suite