Skip to contentSkip to conversation

Add PCI device id checking for the WDC plugin commands.

PATCH New Jeffrey Lien 2 participants 2 messages Sep 25, 2018 NVMe

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add PCI device id checking for the WDC plugin commands.

Signed-off-by Jeff Lien <jeff.lien at wdc.com>
---
 nvme.c     |   2 +-
 nvme.h     |   1 +
 wdc-nvme.c | 145 +++++++++++++++++++++++++++++++++++++++++++++----------------
 3 files changed, 109 insertions(+), 39 deletions(-)
nvme.c +1 -1
index 253bc9e..1e9359a 100644
@@ -1205,7 +1205,7 @@ static int create_ns(int argc, char **argv, struct command *cmd, struct plugin *
 	return err;
 }
 
-static char *nvme_char_from_block(char *block)
+char *nvme_char_from_block(char *block)
 {
 	char slen[16];
 	unsigned len;
nvme.h +1 -0
index e509e9c..431809d 100644
@@ -157,4 +157,5 @@ int	validate_output_format(char *format);
 
 struct subsys_list_item *get_subsys_list(int *subcnt);
 void free_subsys_list(struct subsys_list_item *slist, int n);
+char *nvme_char_from_block(char *block);
 #endif /* _NVME_H */
wdc-nvme.c +107 -38

220 lines not on this page · raw message

Signature · 1 line
1.8.3.1
#1 lore raw

PATCH 1/1 Add PCI device id checking for the WDC plugin commands.

Quoted 1 line · Jeffrey Lien
Signed-off-by Jeff Lien <jeff.lien at wdc.com>

Thanks, patches applied.