]> www.infradead.org Git - users/hch/nvme-cli.git/commitdiff
fix huawei filter to search all namespaces
authorKeith Busch <kbusch@kernel.org>
Wed, 6 Nov 2019 19:02:42 +0000 (04:02 +0900)
committerKeith Busch <kbusch@kernel.org>
Wed, 6 Nov 2019 19:02:42 +0000 (04:02 +0900)
Signed-off-by: Keith Busch <kbusch@kernel.org>
plugins/huawei/huawei-nvme.c

index a65ff2fe6c754f5992cc37d0b41cc617b6ff63cc..55282374b06b6ebbd2897b586dc5b0ebeae3bfeb 100644 (file)
@@ -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;