]> www.infradead.org Git - users/hch/nvme-cli.git/commit
nvme-cli/format: use existing LBAF if none requested
authorKeith Busch <keith.busch@intel.com>
Tue, 14 Mar 2017 15:49:42 +0000 (11:49 -0400)
committerKeith Busch <keith.busch@intel.com>
Tue, 14 Mar 2017 16:05:42 +0000 (12:05 -0400)
commit62ae3bea42cb3a81cc77492568747a330f783100
tree444d28cf52ab167af5064d0fd863897dfc4ce8ab
parentc0e7679d867a54b36edd488c8cfeb7a90bb44472
nvme-cli/format: use existing LBAF if none requested

We previously default to LBAF 0 if the user didn't specify one. If a
specific LBAF is not explicitly requested, most people expect format
to not change their currently in use LBAF.  This patch uses the current
format if we have a namespace to query.

https://github.com/linux-nvme/nvme-cli/issues/164

Signed-off-by: Keith Busch <keith.busch@intel.com>
nvme.c