blob: 1d673283c85c6c1154b65738dfc7b67f740f121c (
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
'\" t
.\" Title: nvme-lnvm-diag-set-bbtbl
.\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
.\" Date: 04/24/2020
.\" Manual: NVMe Manual
.\" Source: NVMe
.\" Language: English
.\"
.TH "NVME\-LNVM\-DIAG\-SE" "1" "04/24/2020" "NVMe" "NVMe Manual"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
nvme-lnvm-diag-set-bbtbl \- Set a block state in the bad block table
.SH "SYNOPSIS"
.sp
.nf
\fInvme lnvm\-diag\-set\-bbtbl\fR [\-\-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>]
.fi
.SH "DESCRIPTION"
.sp
Set the bad block table for a given channel, lun, plane and block with value v\&.
.sp
For each block available, the status byte is read as follows:
.sp
0: Good block 1: Bad block 2: Grown bad block 4: Device reserved block 8: Host\-side reserved block 16: Media managed reserved block
.SH "OPTIONS"
.PP
\-\-namespace\-id=<NUM>, \-n <NUM>
.RS 4
Namespace id to use
.RE
.PP
\-\-channel\-id, \-c
.RS 4
Channel id
.RE
.PP
\-\-lun\-id, \-l
.RS 4
LUN id
.RE
.PP
\-\-plane\-id, \-p
.RS 4
Plane id
.RE
.PP
\-\-block\-id, \-b
.RS 4
Block id
.RE
.SH "EXAMPLES"
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
Set channel 0, lun 0, plane 0, block 10 to bad block value 2 (grown bad) on physical device /dev/nvme0
.RE
.sp
.if n \{\
.RS 4
.\}
.nf
# nvme lnvm\-diag\-set\-bbtbl /dev/nvme0 \-c 0 \-l 0 \-p 0 \-b 10 \-v 2
.fi
.if n \{\
.RE
.\}
.SH "NVME"
.sp
Part of the nvme\-user suite
|