1
0
Fork 0

Merging upstream version 1.14.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-16 11:31:10 +01:00
parent 868b5312e8
commit d6fd2fdea9
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
305 changed files with 20664 additions and 6099 deletions

View file

@ -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;