Skip to content

Commit 50ea515

Browse files
committed
PhysicalDisk (Linux): don't detect disk type of virtual disks
Fix #1697
1 parent cbd9f72 commit 50ea515

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/detection/physicaldisk/physicaldisk_linux.c

+3
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,10 @@ static void parsePhysicalDisk(int dfd, const char* devName, FFPhysicalDiskOption
106106
else if (strstr(pathSysDeviceReal, "/nvme") != NULL)
107107
ffStrbufSetStatic(&device->interconnect, "NVMe");
108108
else if (strstr(pathSysDeviceReal, "/virtio") != NULL)
109+
{
109110
ffStrbufSetStatic(&device->interconnect, "Virtual");
111+
isVirtual = true;
112+
}
110113
else
111114
{
112115
if (ffAppendFileBufferRelative(devfd, "transport", &device->interconnect))

0 commit comments

Comments
 (0)