]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
lnvm: introduce chunk-log command for chunk info
authorMinwoo Im <minwoo.im.dev@gmail.com>
Tue, 23 Jul 2019 17:26:04 +0000 (02:26 +0900)
committerMinwoo Im <minwoo.im.dev@gmail.com>
Sun, 28 Jul 2019 06:30:47 +0000 (15:30 +0900)
commit1aa02ff3fa5fed276eba529cafbe3e94958442cd
tree6fd0a3c2a1e45251c8aa3417809678b097b88bc8
parentb0b41d2916fcf1cd80cb0301068a98b45f9d8762
lnvm: introduce chunk-log command for chunk info

To retrieve the chunk information from the nvme namespae for the given
OCSSD, we can just do like:
nvme lnvm chunk-log /dev/nvme0n1 --output-format=normal

This will calculate the data length from the geometry data structure
which might be retrieved by a Geometry command(Identity for 1.2 spec.).
Then it will request get log page API for 1.3 NVMe spec to get the
entries which indicate chunk information.

Cc: Keith Busch <kbusch@kernel.org>
Cc: Matias Bjorling <mb@lightnvm.io>
Cc: Javier González <javier@javigon.com>
Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
nvme-lightnvm.c
nvme-lightnvm.h
plugins/lnvm/lnvm-nvme.c
plugins/lnvm/lnvm-nvme.h