From: Yair Elharrar Date: Fri, 19 Jul 2019 07:18:59 +0000 (+0300) Subject: nvme: change format default namespace id X-Git-Tag: v1.9~24 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=040fd04f4086412d040461dcd13f67e47f6215c4;p=users%2Fsagi%2Fnvme-cli.git nvme: change format default namespace id Reject format to char device without an explicit namespace argument unless FNA requires format to all namespaces. Signed-off-by: Yair Elharrar [formatting, changelog] Signed-off-by: Keith Busch --- diff --git a/Documentation/nvme-format.1 b/Documentation/nvme-format.1 index e1601445..52cae78d 100644 --- a/Documentation/nvme-format.1 +++ b/Documentation/nvme-format.1 @@ -1,13 +1,13 @@ '\" t .\" Title: nvme-format -.\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author] -.\" Generator: DocBook XSL Stylesheets vsnapshot -.\" Date: 05/16/2019 +.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] +.\" Generator: DocBook XSL Stylesheets v1.79.1 +.\" Date: 07/28/2019 .\" Manual: NVMe Manual .\" Source: NVMe .\" Language: English .\" -.TH "NVME\-FORMAT" "1" "05/16/2019" "NVMe" "NVMe Manual" +.TH "NVME\-FORMAT" "1" "07/28/2019" "NVMe" "NVMe Manual" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- @@ -46,7 +46,7 @@ nvme-format \- Format an NVMe device .sp For the NVMe device given, send an nvme Format Namespace admin command and provides the results\&. .sp -The parameter is mandatory and may be either the NVMe character device (ex: /dev/nvme0), or a namespace block device (ex: /dev/nvme0n1)\&. If the character device is given, the namespace identifier will default to 0xffffffff to send the format to all namespace, but can be overridden to any namespace with the \fInamespace\-id\fR option\&. If the block device is given, the namespace identifier will default to the namespace id of the block device given, but can be overridden with the same option\&. +The parameter is mandatory and may be either the NVMe character device (ex: /dev/nvme0), or a namespace block device (ex: /dev/nvme0n1)\&. If the character device is given, and the controller does not support formatting of particular namespaces (ID_CTRL\&.FNA bit 0 enabled), then all namespaces will be formatted\&. If FNA is disabled, then the namespace identifier must be specified with the \fInamespace\-id\fR option; specify a value of 0xffffffff to send the format to all namespaces\&. If the block device is given, the namespace identifier will default to the namespace ID of the block device given, but can be overridden with the same option\&. .sp Note, the numeric suffix on the character device, for example the \fI0\fR in /dev/nvme0, does NOT indicate this device handle is the parent controller of any namespaces with the same suffix\&. The namespace handle\(cqs numeral may be coming from the subsystem identifier, which is independent of the controller\(cqs identifier\&. Do not assume any particular device relationship based on their names\&. If you do, you may irrevocably erase data on an unintended device\&. .sp @@ -55,7 +55,7 @@ On success, the program will automatically issue BLKRRPART ioctl to force rescan .PP \-n , \-\-namespace\-id= .RS 4 -Send the format command for the specified nsid\&. This can be used to override the default value for either character device (0xffffffff) or the block device (result from NVME_IOCTL_ID)\&. +Send the format command for the specified nsid\&. This can be used to override the default value for either character device (unspecified) or the block device (result from NVME_IOCTL_ID)\&. .RE .PP \-l , \-\-lbaf= diff --git a/Documentation/nvme-format.html b/Documentation/nvme-format.html index cdca79d5..83cd0bed 100644 --- a/Documentation/nvme-format.html +++ b/Documentation/nvme-format.html @@ -1,9 +1,10 @@ + - + nvme-format(1)