Skip to contentSkip to conversation

nvme-cli: lnvm: introduce chunk-log command

PATCH Superseded Minwoo Im 2 participants 7 messages Jul 27, 2019 – Jul 28, 2019 NVMe

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Minwoo Im

author
#0 lore raw

v2 cover nvme-cli: lnvm: introduce chunk-log command

Hi all,

This series introduces a "chunk-log" subcommand for lnvm extension plugin. This command will send a get-log page NVMe admin command to the given namespace which is for OCSSD. We just can use nvme get-log command with log id, but this subcommand is much more easier to use because it gives parameters.

liblightnvm also provides nvm_cmd rprt_all command to retrieve this information, but nvme-cli can do it also. If you have something else for this, please let me know.

This series also holds few clean-ups for the existing codes.

The last patch is introducing alias command name "geometry" for the id-ns subcommand.

Please reivew.

Thanks!

Changes to V1:
- Add Signed-off-by and Reviewed-by from Matias and Javier
- Squashed 2/3/4 patches into a single one
- Remove nested-if suggested by Javier
- Early return instead of goto suggested by Javier
- Update print format for chunk-log suggested by Matias

Minwoo Im (3):
lnvm: make data_len to sizeof() instead of magic number
lnvm: introduce chunk-log command for chunk info
lnvm: introduce alias geometry for id-ns for lnvm

 nvme-lightnvm.c          | 73 +++++++++++++++++++++++++++++++++++-
 nvme-lightnvm.h          | 17 +++++++++
 plugins/lnvm/lnvm-nvme.c | 81 ++++++++++++++++++++++++++++++++++++++++
 plugins/lnvm/lnvm-nvme.h |  3 +-
 4 files changed, 171 insertions(+), 3 deletions(-)
Signature · 1 line
2.17.1
author
#1 lore raw

PATCH v2 1/3 lnvm: make data_len to sizeof() instead of magic number

We can have it as a sizeof() instead of the hard-coded value for the data structure.

Cc Keith Busch <kbusch at kernel.org>
Cc Matias Bjorling <mb at lightnvm.io>
Signed-off-by Minwoo Im <minwoo.im.dev at gmail.com>
Signed-off-by Matias Bj?rling <matias.bjorling at wdc.com>
Reviewed-by Javier Gonz?lez <javier at javigon.com>
---
 nvme-lightnvm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
nvme-lightnvm.c +1 -1
index 0b99786..e8cdccd 100644
@@ -442,7 +442,7 @@ static int lnvm_get_identity(int fd, int nsid, struct nvme_nvm_id *nvm_id)
 		.opcode		= nvme_nvm_admin_identity,
 		.nsid		= nsid,
 		.addr		= (__u64)(uintptr_t)nvm_id,
-		.data_len	= 0x1000,
+		.data_len	= sizeof(struct nvme_nvm_id),
 	};
 
 	return nvme_submit_passthru(fd, NVME_IOCTL_ADMIN_CMD, &cmd);
Signature · 1 line
2.17.1
author
#2 lore raw

PATCH v2 2/3 lnvm: introduce chunk-log command for chunk info

In reply to Minwoo Im

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 at kernel.org>
Cc Matias Bjorling <mb at lightnvm.io>
Cc Javier Gonz?lez <javier at javigon.com>
Signed-off-by Minwoo Im <minwoo.im.dev at gmail.com>
---
 nvme-lightnvm.c          | 71 ++++++++++++++++++++++++++++++++++-
 nvme-lightnvm.h          | 17 +++++++++
 plugins/lnvm/lnvm-nvme.c | 81 ++++++++++++++++++++++++++++++++++++++++
 plugins/lnvm/lnvm-nvme.h |  1 +
 4 files changed, 169 insertions(+), 1 deletion(-)
nvme-lightnvm.c +70 -1
index e8cdccd..5e088e5 100644
@@ -436,7 +436,7 @@ static void show_lnvm_id_ns(struct nvme_nvm_id *id, unsigned int flags)
 	}
 }
 
-static int lnvm_get_identity(int fd, int nsid, struct nvme_nvm_id *nvm_id)
+int lnvm_get_identity(int fd, int nsid, struct nvme_nvm_id *nvm_id)
 {
 	struct nvme_admin_cmd cmd = {
 		.opcode		= nvme_nvm_admin_identity,
@@ -465,6 +465,75 @@ int lnvm_do_id_ns(int fd, int nsid, unsigned int flags)
 	return err;
 }
 
+static inline const char *print_chunk_state(__u8 cs)
+{
+	switch (cs) {
+	case 1 << 0:	return "FREE";
+	case 1 << 1:	return "CLOSED";
+	case 1 << 2:	return "OPEN";
+	case 1 << 3:	return "OFFLINE";
+	default:	return "UNKNOWN";
+	}
+}
+
+static inline const char *print_chunk_type(__u8 ct)
+{
+	switch (ct) {
+	case 1 << 0:	return "SEQWRITE_REQ";
+	case 1 << 1:	return "RANDWRITE_ALLOWED";
+	case 1 << 4:	return "DEVIATED";
+	default:	return "UNKNOWN";
+	}
+}
+
+static void show_lnvm_chunk_log(struct nvme_nvm_chunk_desc *chunk_log,
+				__u32 data_len)
+{
+	int nr_entry = data_len / sizeof(struct nvme_nvm_chunk_desc);
+	int idx;
+
+	printf("Total chunks in namespace: %d\n", nr_entry);
+	for (idx = 0; idx < nr_entry; idx++) {
+		struct nvme_nvm_chunk_desc *desc = &chunk_log[idx];
+
+		printf(" [%5d] { ", idx);
+		printf("SLBA: 0x%016"PRIx64, le64_to_cpu(desc->slba));
+		printf(", WP: 0x%016"PRIx64, le64_to_cpu(desc->wp));
+		printf(", CNLB: 0x%016"PRIx64, le64_to_cpu(desc->cnlb));
+		printf(", State: %-8s", print_chunk_state(desc->cs));
+		printf(", Type: %-20s", print_chunk_type(desc->ct));
+		printf(", WLI: %4d }\n", desc->wli);
+	}
+}
+
+int lnvm_do_chunk_log(int fd, __u32 nsid, __u32 data_len, void *data,
+			unsigned int flags)
+{
+	int err;
+
+	err = nvme_get_log13(fd, nsid, NVM_LID_CHUNK_INFO, 0, 0, 0,
+			false, data_len, data);
+	if (err > 0) {
+		fprintf(stderr, "NVMe Status:%s(%x) NSID:%d\n",
+			nvme_status_to_string(err), err, nsid);
+
+		goto out;
+	} else if (err < 0) {
+		err = -errno;
+		perror("nvme_get_log13");
+
+		goto out;
+	}
+
+	if (flags & RAW)
+		d_raw(data, data_len);
+	else
+		show_lnvm_chunk_log(data, data_len);
+
+out:
+	return err;
+}
+
 static void show_lnvm_bbtbl(struct nvme_nvm_bb_tbl *tbl)
 {
 	printf("verid    : %#x\n", (uint16_t)le16_to_cpu(tbl->verid));
nvme-lightnvm.h +17 -0
index 9dea912..19660b7 100644
@@ -246,6 +246,20 @@ struct nvme_nvm_id {
 	__u8			resv[4095];
 } __attribute__((packed));
 
+enum {
+	NVM_LID_CHUNK_INFO = 0xCA,
+};
+
+struct nvme_nvm_chunk_desc {
+	__u8	cs;
+	__u8	ct;
+	__u8	wli;
+	__u8	rsvd_7_3[5];
+	__u64	slba;
+	__u64	cnlb;
+	__u64	wp;
+};
+
 struct nvme_nvm_bb_tbl {
 	__u8	tblid[4];
 	__le16	verid;
@@ -299,6 +313,8 @@ static inline struct ppa_addr generic_to_dev_addr(
 	return l;
 }
 
+int lnvm_get_identity(int fd, int nsid, struct nvme_nvm_id *nvm_id);
+
 int lnvm_do_init(char *, char *);
 int lnvm_do_list_devices(void);
 int lnvm_do_info(void);
@@ -306,6 +322,7 @@ int lnvm_do_create_tgt(char *, char *, char *, int, int, int, int);
 int lnvm_do_remove_tgt(char *);
 int lnvm_do_factory_init(char *, int, int, int);
 int lnvm_do_id_ns(int, int, unsigned int);
+int lnvm_do_chunk_log(int, __u32, __u32, void *, unsigned int);
 int lnvm_do_get_bbtbl(int, int, int, int, unsigned int);
 int lnvm_do_set_bbtbl(int, int, int, int, int, int, __u8);
 
plugins/lnvm/lnvm-nvme.c +81 -0

92 lines not on this page · raw message

plugins/lnvm/lnvm-nvme.h +1 -0
index 3d5cbc5..e25f756 100644
@@ -12,6 +12,7 @@ PLUGIN(NAME("lnvm", "LightNVM specific extensions"),
 		ENTRY("list", "List available LightNVM devices", lnvm_list)
 		ENTRY("info", "List general information and available target engines", lnvm_info)
 		ENTRY("id-ns", "List geometry for LightNVM device", lnvm_id_ns)
+		ENTRY("chunk-log", "Chunk Information Log Page", lnvm_chunk_log)
 		ENTRY("init", "Initialize media manager on LightNVM device", lnvm_init)
 		ENTRY("create", "Create target on top of a LightNVM device", lnvm_create_tgt)
 		ENTRY("remove", "Remove target from device", lnvm_remove_tgt)
Signature · 1 line
2.17.1
#3 lore raw

PATCH v2 2/3 lnvm: introduce chunk-log command for chunk info

Quoted 47 lines · Minwoo Im

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 at kernel.org>
Cc Matias Bjorling <mb at lightnvm.io>
Cc Javier Gonz?lez <javier at javigon.com>
Signed-off-by Minwoo Im <minwoo.im.dev at gmail.com>
---
  nvme-lightnvm.c          | 71 ++++++++++++++++++++++++++++++++++-
  nvme-lightnvm.h          | 17 +++++++++
  plugins/lnvm/lnvm-nvme.c | 81 ++++++++++++++++++++++++++++++++++++++++
  plugins/lnvm/lnvm-nvme.h |  1 +
  4 files changed, 169 insertions(+), 1 deletion(-)
nvme-lightnvm.c +11 -1
index e8cdccd..5e088e5 100644
@@ -436,7 +436,7 @@ static void show_lnvm_id_ns(struct nvme_nvm_id *id, unsigned int flags)
  	}
  }
 
-static int lnvm_get_identity(int fd, int nsid, struct nvme_nvm_id *nvm_id)
+int lnvm_get_identity(int fd, int nsid, struct nvme_nvm_id *nvm_id)
  {
  	struct nvme_admin_cmd cmd = {
  		.opcode		= nvme_nvm_admin_identity,
@@ -465,6 +465,75 @@ int lnvm_do_id_ns(int fd, int nsid, unsigned int flags)
  	return err;
  }
 
+static inline const char *print_chunk_state(__u8 cs)
+{
+	switch (cs) {
+	case 1 << 0:	return "FREE";
+	case 1 << 1:	return "CLOSED";
+	case 1 << 2:	return "OPEN";
+	case 1 << 3:	return "OFFLINE";
+	default:	return "UNKNOWN";
+	}
+}

nvme-lightnvm.c int lnvm_do_id_ns(int fd, int nsid, unsigned int flags) · line 487

Quoted 10 lines
nvme-lightnvm.c +10 -0
+
+static inline const char *print_chunk_type(__u8 ct)
+{
+	switch (ct) {
+	case 1 << 0:	return "SEQWRITE_REQ";
+	case 1 << 1:	return "RANDWRITE_ALLOWED";
+	case 1 << 4:	return "DEVIATED";
+	default:	return "UNKNOWN";
+	}
+}

The Chunk Type is divided into two value ranges - one for the chunk type (seq, req) and one that describes the properties of the zone. I would move the "Deviated" into being expressed as an attribute (or similar). Then they are clearly separated. An OCSSD implementation can both have the SEQ write bit set, together with bit 4 for dynamic chunk capacity. The above doesn't communicate that in the right way.

Quoted 205 lines
nvme-lightnvm.c +49 -0
+
+static void show_lnvm_chunk_log(struct nvme_nvm_chunk_desc *chunk_log,
+				__u32 data_len)
+{
+	int nr_entry = data_len / sizeof(struct nvme_nvm_chunk_desc);
+	int idx;
+
+	printf("Total chunks in namespace: %d\n", nr_entry);
+	for (idx = 0; idx < nr_entry; idx++) {
+		struct nvme_nvm_chunk_desc *desc = &chunk_log[idx];
+
+		printf(" [%5d] { ", idx);
+		printf("SLBA: 0x%016"PRIx64, le64_to_cpu(desc->slba));
+		printf(", WP: 0x%016"PRIx64, le64_to_cpu(desc->wp));
+		printf(", CNLB: 0x%016"PRIx64, le64_to_cpu(desc->cnlb));
+		printf(", State: %-8s", print_chunk_state(desc->cs));
+		printf(", Type: %-20s", print_chunk_type(desc->ct));
+		printf(", WLI: %4d }\n", desc->wli);
+	}
+}
+
+int lnvm_do_chunk_log(int fd, __u32 nsid, __u32 data_len, void *data,
+			unsigned int flags)
+{
+	int err;
+
+	err = nvme_get_log13(fd, nsid, NVM_LID_CHUNK_INFO, 0, 0, 0,
+			false, data_len, data);
+	if (err > 0) {
+		fprintf(stderr, "NVMe Status:%s(%x) NSID:%d\n",
+			nvme_status_to_string(err), err, nsid);
+
+		goto out;
+	} else if (err < 0) {
+		err = -errno;
+		perror("nvme_get_log13");
+
+		goto out;
+	}
+
+	if (flags & RAW)
+		d_raw(data, data_len);
+	else
+		show_lnvm_chunk_log(data, data_len);
+
+out:
+	return err;
+}
+
  static void show_lnvm_bbtbl(struct nvme_nvm_bb_tbl *tbl)
  {
  	printf("verid    : %#x\n", (uint16_t)le16_to_cpu(tbl->verid));
nvme-lightnvm.h +17 -0
index 9dea912..19660b7 100644
@@ -246,6 +246,20 @@ struct nvme_nvm_id {
  	__u8			resv[4095];
  } __attribute__((packed));
 
+enum {
+	NVM_LID_CHUNK_INFO = 0xCA,
+};
+
+struct nvme_nvm_chunk_desc {
+	__u8	cs;
+	__u8	ct;
+	__u8	wli;
+	__u8	rsvd_7_3[5];
+	__u64	slba;
+	__u64	cnlb;
+	__u64	wp;
+};
+
  struct nvme_nvm_bb_tbl {
  	__u8	tblid[4];
  	__le16	verid;
@@ -299,6 +313,8 @@ static inline struct ppa_addr generic_to_dev_addr(
  	return l;
  }
 
+int lnvm_get_identity(int fd, int nsid, struct nvme_nvm_id *nvm_id);
+
  int lnvm_do_init(char *, char *);
  int lnvm_do_list_devices(void);
  int lnvm_do_info(void);
@@ -306,6 +322,7 @@ int lnvm_do_create_tgt(char *, char *, char *, int, int, int, int);
  int lnvm_do_remove_tgt(char *);
  int lnvm_do_factory_init(char *, int, int, int);
  int lnvm_do_id_ns(int, int, unsigned int);
+int lnvm_do_chunk_log(int, __u32, __u32, void *, unsigned int);
  int lnvm_do_get_bbtbl(int, int, int, int, unsigned int);
  int lnvm_do_set_bbtbl(int, int, int, int, int, int, __u8);
 
plugins/lnvm/lnvm-nvme.c +81 -0
index 754931a..90e5d57 100644
@@ -1,5 +1,7 @@
  #include <stdio.h>
  #include <errno.h>
+#include <stdlib.h>
+#include <unistd.h>
 
  #include "nvme.h"
  #include "nvme-print.h"
@@ -127,6 +129,85 @@ static int lnvm_id_ns(int argc, char **argv, struct command *cmd, struct plugin
  	return lnvm_do_id_ns(fd, cfg.namespace_id, flags);
  }
 
+static int lnvm_chunk_log(int argc, char **argv, struct command *cmd, struct plugin *plugin)
+{
+	const char *desc = "Retrieve the chunk information log for the "\
+		"specified given LightNVM device, returns in either "\
+		"human-readable or binary format.\n"\
+		"This will request Geometry first to get the "\
+		"num_grp,num_pu,num_chk first to figure out the total size "\
+		"of the log pages."\
+		;
+	const char *output_format = "Output format: normal|binary";
+	const char *human_readable = "Print normal in readable format";
+	int err, fmt, fd;
+	struct nvme_nvm_id20 geo;
+	struct nvme_nvm_chunk_desc *chunk_log;
+	__u32 nsid;
+	__u32 data_len;
+	unsigned int flags = 0;
+
+	struct config {
+		char *output_format;
+		int human_readable;
+	};
+
+	struct config cfg = {
+		.output_format = "normal",
+	};
+
+	const struct argconfig_commandline_options command_line_options[] = {
+		{"output-format", 'o', "FMT", CFG_STRING, &cfg.output_format, required_argument, output_format},
+		{"human-readable",'H', "",    CFG_NONE,   &cfg.human_readable,no_argument,       human_readable},
+		{NULL}
+	};
+
+	fd = parse_and_open(argc, argv, desc, command_line_options, &cfg,
+				sizeof(cfg));
+	if (fd < 0)
+		return fd;
+
+	fmt = validate_output_format(cfg.output_format);
+	if (fmt < 0) {
+		err = fmt;
+		goto close;
+	}
+
+	if (fmt == BINARY)
+		flags |= RAW;
+	else if (cfg.human_readable)
+		flags |= HUMAN;
+
+	nsid = nvme_get_nsid(fd);
+
+	/*
+	 * It needs to figure out how many bytes will be requested by this
+	 * subcommand by the (num_grp * num_pu * num_chk) from the Geometry.
+	 */
+	err = lnvm_get_identity(fd, nsid, (struct nvme_nvm_id *) &geo);
+	if (err)
+		goto close;
+
+	data_len = (geo.num_grp * geo.num_pu * geo.num_chk) *
+			sizeof(struct nvme_nvm_chunk_desc);
+	chunk_log = malloc(data_len);
+	if (!chunk_log) {
+		fprintf(stderr, "cound not alloc for chunk log %dbytes\n",
+				data_len);
+		err = -ENOMEM;
+		goto close;
+	}
+
+	err = lnvm_do_chunk_log(fd, nsid, data_len, chunk_log, flags);
+	if (err)
+		fprintf(stderr, "get log page for chunk information failed\n");
+
+	free(chunk_log);
+close:
+	close(fd);
+	return err;
+}
+
  static int lnvm_create_tgt(int argc, char **argv, struct command *cmd, struct plugin *plugin)
  {
  	const char *desc = "Instantiate a target on top of a LightNVM enabled device.";
plugins/lnvm/lnvm-nvme.h +1 -0
index 3d5cbc5..e25f756 100644
@@ -12,6 +12,7 @@ PLUGIN(NAME("lnvm", "LightNVM specific extensions"),
  		ENTRY("list", "List available LightNVM devices", lnvm_list)
  		ENTRY("info", "List general information and available target engines", lnvm_info)
  		ENTRY("id-ns", "List geometry for LightNVM device", lnvm_id_ns)
+		ENTRY("chunk-log", "Chunk Information Log Page", lnvm_chunk_log)
  		ENTRY("init", "Initialize media manager on LightNVM device", lnvm_init)
  		ENTRY("create", "Create target on top of a LightNVM device", lnvm_create_tgt)
  		ENTRY("remove", "Remove target from device", lnvm_remove_tgt)
author
#4 lore raw

PATCH v2 2/3 lnvm: introduce chunk-log command for chunk info

Hi Matias,

Quoted 8 lines
Quoted 8 lines
nvme-lightnvm.c +8 -0
+static inline const char *print_chunk_type(__u8 ct)
+{
+	switch (ct) {
+	case 1 << 0:	return "SEQWRITE_REQ";
+	case 1 << 1:	return "RANDWRITE_ALLOWED";
+	case 1 << 4:	return "DEVIATED";
+	default:	return "UNKNOWN";
+	}
Quoted 8 lines
Quoted 1 line

+}

The Chunk Type is divided into two value ranges - one for the chunk type (seq, req) and one that describes the properties of the zone. I would move the "Deviated" into being expressed as an attribute (or similar). Then they are clearly separated. An OCSSD implementation can both have the SEQ write bit set, together with bit 4 for dynamic chunk capacity. The above doesn't communicate that in the right way.

Ah sorry, I think my brain was not working well in the dawn ;). I'll provide "Deviated" things as an attribute first regardless the chunk types.

Thanks for the review. Will prepare the next version.

author
#5 lore raw

PATCH v2 3/3 lnvm: introduce alias geometry for id-ns for lnvm

In reply to Minwoo Im

Now we have 2.0 OCSSD spec which introudces Geometry command instead of Identity or something else. This patch just adds an alias for this command for the given NVMe namespace with backward compatibility.

Cc Keith Busch <kbusch at kernel.org>
Cc Matias Bjorling <mb at lightnvm.io>
Cc Javier Gonz?lez <javier at javigon.com>
Signed-off-by Minwoo Im <minwoo.im.dev at gmail.com>
---
 plugins/lnvm/lnvm-nvme.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
plugins/lnvm/lnvm-nvme.h +1 -1
index e25f756..45b3cf0 100644
@@ -11,7 +11,7 @@ PLUGIN(NAME("lnvm", "LightNVM specific extensions"),
 	COMMAND_LIST(
 		ENTRY("list", "List available LightNVM devices", lnvm_list)
 		ENTRY("info", "List general information and available target engines", lnvm_info)
-		ENTRY("id-ns", "List geometry for LightNVM device", lnvm_id_ns)
+		ENTRY("id-ns", "List geometry for LightNVM device", lnvm_id_ns, "geometry")
 		ENTRY("chunk-log", "Chunk Information Log Page", lnvm_chunk_log)
 		ENTRY("init", "Initialize media manager on LightNVM device", lnvm_init)
 		ENTRY("create", "Create target on top of a LightNVM device", lnvm_create_tgt)
Signature · 1 line
2.17.1
#6 lore raw

PATCH v2 3/3 lnvm: introduce alias geometry for id-ns for lnvm

Quoted 18 lines · Minwoo Im

Now we have 2.0 OCSSD spec which introudces Geometry command instead of Identity or something else. This patch just adds an alias for this command for the given NVMe namespace with backward compatibility.

Cc Keith Busch <kbusch at kernel.org>
Cc Matias Bjorling <mb at lightnvm.io>
Cc Javier Gonz?lez <javier at javigon.com>
Signed-off-by Minwoo Im <minwoo.im.dev at gmail.com>
---
  plugins/lnvm/lnvm-nvme.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
plugins/lnvm/lnvm-nvme.h +0 -0
index e25f756..45b3cf0 100644

plugins/lnvm/lnvm-nvme.h PLUGIN(NAME("lnvm", "LightNVM specific extensions"), · line 17

Quoted 8 lines
plugins/lnvm/lnvm-nvme.h +1 -1
@@ -11,7 +11,7 @@ PLUGIN(NAME("lnvm", "LightNVM specific extensions"),
  	COMMAND_LIST(
  		ENTRY("list", "List available LightNVM devices", lnvm_list)
  		ENTRY("info", "List general information and available target engines", lnvm_info)
-		ENTRY("id-ns", "List geometry for LightNVM device", lnvm_id_ns)
+		ENTRY("id-ns", "List geometry for LightNVM device", lnvm_id_ns, "geometry")
  		ENTRY("chunk-log", "Chunk Information Log Page", lnvm_chunk_log)
  		ENTRY("init", "Initialize media manager on LightNVM device", lnvm_init)
  		ENTRY("create", "Create target on top of a LightNVM device", lnvm_create_tgt)

Thanks. Works for me.

Signed-off-by Matias Bj?rling <mb at lightnvm.io>