From: Keith Busch Date: Wed, 6 Nov 2019 19:02:42 +0000 (+0900) Subject: fix huawei filter to search all namespaces X-Git-Tag: v1.10~51 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=7bed61ad5d02d1c9bc3313f38ddca47e4cabdcda;p=users%2Fhch%2Fnvme-cli.git fix huawei filter to search all namespaces Signed-off-by: Keith Busch --- diff --git a/plugins/huawei/huawei-nvme.c b/plugins/huawei/huawei-nvme.c index a65ff2f..5528237 100644 --- a/plugins/huawei/huawei-nvme.c +++ b/plugins/huawei/huawei-nvme.c @@ -322,7 +322,7 @@ static int huawei_list(int argc, char **argv, struct command *command, if (fmt != JSON && fmt != NORMAL) return -EINVAL; - n = scandir(dev, &devices, scan_dev_filter, alphasort); + n = scandir(dev, &devices, scan_namespace_filter, alphasort); if (n <= 0) return n;