Add PCI device id checking for the WDC plugin commands.
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
@@ -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
@@ -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
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.