Skip to content

Commit ecd7366

Browse files
committed
DiskIO (Linux): fix multi-namespace nvme drive detection
1 parent 9939029 commit ecd7366

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/detection/diskio/diskio_linux.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ static void parseDiskIOCounters(int dfd, const char* devName, FFlist* result, FF
3838
{
3939
char pathSysBlock[16];
4040
snprintf(pathSysBlock, sizeof(pathSysBlock), "nvme%dn2", devid);
41-
faccessat(devfd, pathSysBlock, F_OK, 0);
41+
multiNs = faccessat(devfd, pathSysBlock, F_OK, 0) == 0;
4242
}
4343
if (multiNs)
4444
{

0 commit comments

Comments
 (0)