Merging upstream version 1.14.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
868b5312e8
commit
d6fd2fdea9
305 changed files with 20664 additions and 6099 deletions
|
@ -7,6 +7,22 @@
|
|||
/* global, used for controller specific namespace filter */
|
||||
int current_index;
|
||||
|
||||
int scan_ctrl_namespace_filter(const struct dirent *d)
|
||||
{
|
||||
int c, i, n;
|
||||
|
||||
if (d->d_name[0] == '.')
|
||||
return 0;
|
||||
|
||||
if (strstr(d->d_name, "nvme")) {
|
||||
if (sscanf(d->d_name, "nvme%dc%dn%d", &i, &c, &n) == 3)
|
||||
return 1;
|
||||
if (sscanf(d->d_name, "nvme%dn%d", &i, &n) == 2)
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
int scan_namespace_filter(const struct dirent *d)
|
||||
{
|
||||
int i, n;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue