1NVME-GET-LBA-STAT(1)              NVMe Manual             NVME-GET-LBA-STAT(1)
2
3
4

NAME

6       nvme-get-lba-status - Get LBA Status from NVMe device
7

SYNOPSIS

9       nvme get-lba-status <device> [--namespace-id=<nsid> | -n <nsid>]
10                           [--start-lba=<slba> | -s <slba>]
11                           [--max-dw=<max-dw> | -m <max-dw>]
12                           [--action=<action-type> | -a <action-type>]
13                           [--range-len=<range-len> | -l <range-len>]
14                           [--timeout=<timeout> | -t <timeout> ]
15                          [--output-format=<format> | -o <format>]
16

DESCRIPTION

18       For the NVMe device given, send an nvme Get LBA Status admin command
19       and provides the results.
20
21       The <device> parameter is mandatory and may be either the NVMe
22       character device (ex: /dev/nvme0), or a namespace block device (ex:
23       /dev/nvme0n1).
24
25       On success, the returned get lba data structure may be returned in one
26       of several ways depending on the option flags; the structure may parsed
27       by the program and printed in a readable format or the raw buffer may
28       be printed to stdout for another program to parse.
29

OPTIONS

31       -n <nsid>, --namespace-id=<nsid>
32           Send the Get LBA Status command for the specified nsid. This can be
33           used to override the default value for either character device
34           (unspecified) or the block device (result from NVME_IOCTL_ID).
35
36       -s <slba>, --start-lba=<slba>
37           Starting LBA(SLBA) in 64-bit address of the first logical block
38           addressed
39
40       -m <max-dw>, --max-dw=<max-dw>
41           Maximum Number of Dwords(MNDW) specifies maximum number of dwords
42           to return
43
44       -a <action-type>, --action=<action-type>
45           Action Type(ATYPE) specifies the mechanism it uses in determining
46           the LBA Status Descriptors.
47
48       -l <range-len>, --range-len=<range-len>
49           Range Length(RL) specifies the length of the range of contiguous
50           LBAs beginning at SLBA
51
52       -t <timeout>, --timeout=<timeout>
53           Override default timeout value. In milliseconds.
54
55       -o <format>, --output-format=<format>
56           Set the reporting format to normal, json, or binary. Only one
57           output format can be used at a time.
58

EXAMPLES

60       •   Get the LBA Status of the device using all defaults:
61
62               # nvme get-lba-status /dev/nvme0n1
63
64       •   Get LBA Status of the namespace 1 from SLBA 10 for the max Dwords
65           of 0x1000
66
67               # nvme get-lba-status /dev/nvme0 --namespace-id=1 --start-lba=10 --max-dw=0x1000
68

NVME

70       Part of the nvme-user suite
71
72
73
74NVMe                              11/04/2022              NVME-GET-LBA-STAT(1)
Impressum