We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67fe1e6 commit 55b9e27Copy full SHA for 55b9e27
src/detection/disk/disk_bsd.c
@@ -3,6 +3,8 @@
3
#include <sys/mount.h>
4
5
#ifdef __FreeBSD__
6
+#include <sys/disklabel.h>
7
+
8
static void detectFsInfo(struct statfs* fs, FFDisk* disk)
9
{
10
if(
@@ -21,6 +23,9 @@ static void detectFsInfo(struct statfs* fs, FFDisk* disk)
21
23
disk->type = FF_DISK_TYPE_REGULAR_BIT;
22
24
25
ffStrbufInit(&disk->name);
26
+ struct disklabel* lab = getdiskbyname(fs->f_mntfromname);
27
+ if(lab)
28
+ ffStrbufSetS(&disk->name, lab->d_packname);
29
}
30
#else
31
void detectFsInfo(struct statfs* fs, FFDisk* disk);
0 commit comments