summaryrefslogtreecommitdiffstats
path: root/Documentation/nvme-lnvm-diag-set-bbtbl.txt
blob: f5dd0040158c3e6966291fa4820f824e25559163 (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
nvme-lnvm-diag-set-bbtbl(1)
===========================

NAME
----
nvme-lnvm-diag-set-bbtbl - Set a block state in the bad block table

SYNOPSIS
--------
[verse]
'nvme lnvm-diag-set-bbtbl' [--namespace-id=<NUM> | -n <NUM>]
			[--channel-id=<CHID> | -c <CHID>]
			[--lun-id=<LUNID> | -l <LUNID>]
			[--plane-id=<PLANEID> | -p <PLANEID>]
			[--block-id=<BLKID> | -b <BLKID>]
			[--value=<NUM> | -v <NUM>]

DESCRIPTION
-----------
Set the bad block table for a given channel, lun, plane and block with value v.

For each block available, the status byte is read as follows:

0: Good block
1: Bad block
2: Grown bad block
4: Device reserved block
8: Host-side reserved block
16: Media managed reserved block

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

--channel-id::
-c::
	Channel id

--lun-id::
-l::
	LUN id

--plane-id::
-p::
	Plane id

--block-id::
-b::
	Block id

EXAMPLES
--------
* Set channel 0, lun 0, plane 0, block 10 to bad block value 2 (grown bad)
  on physical device /dev/nvme0
------------
# nvme lnvm-diag-set-bbtbl /dev/nvme0 -c 0 -l 0 -p 0 -b 10 -v 2
------------

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