NVME-LNVM-DIAG-SE(1) | NVMe Manual | NVME-LNVM-DIAG-SE(1) |
nvme-lnvm-diag-set-bbtbl - Set a block state in the bad block table
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>]
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
--namespace-id=<NUM>, -n <NUM>
--channel-id, -c
--lun-id, -l
--plane-id, -p
--block-id, -b
# nvme lnvm-diag-set-bbtbl /dev/nvme0 -c 0 -l 0 -p 0 -b 10 -v 2
Part of the nvme-user suite
01/08/2019 | NVMe |