]> www.infradead.org Git - users/sagi/libnvme.git/commit
tree: add namespace chrdev name to nvme_ns
authorMinwoo Im <minwoo.im.dev@gmail.com>
Mon, 15 Nov 2021 14:46:00 +0000 (23:46 +0900)
committerMinwoo Im <minwoo.im.dev@gmail.com>
Thu, 18 Nov 2021 01:53:00 +0000 (10:53 +0900)
commite05fc01f0be7d78f6cc80739d05473a03bababa3
tree7fc59e7b741aaf36cd36f725884c0b0a72b55bfa
parent7db951f7ea8cec465035f4476cf17ebbae102434
tree: add namespace chrdev name to nvme_ns

Namespace device node is initialized into two different nodes: block
device and character device which is a generic device used when block
device is not available due to initialization failure in the kernel.

This can be directly retrieved from the `struct nvme_ns` to print out
the generic node in somewhere like `nvme list` command in nvme-cli.

Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
src/libnvme.map
src/nvme/private.h
src/nvme/tree.c
src/nvme/tree.h