Skip to content

Commit 44b417d

Browse files
committed
DiskIO (FreeBSD): skip /dev/pass*
1 parent 5ccd196 commit 44b417d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/detection/diskio/diskio_bsd.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ const char* ffDiskIOGetIoCounters(FFlist* result, FFDiskIOOptions* options)
1717
for (int i = 0; i < stats.dinfo->numdevs; i++)
1818
{
1919
struct devstat* current = &stats.dinfo->devices[i];
20+
if (current->device_type & DEVSTAT_TYPE_PASS)
21+
continue;
2022

2123
char deviceName[128];
2224
snprintf(deviceName, sizeof(deviceName), "%s%d", current->device_name, current->unit_number);

0 commit comments

Comments
 (0)