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 5ebdd9a commit c70b9cbCopy full SHA for c70b9cb
src/detection/disk/disk_bsd.c
@@ -3,8 +3,6 @@
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(
@@ -23,9 +21,6 @@ static void detectFsInfo(struct statfs* fs, FFDisk* disk)
23
21
disk->type = FF_DISK_TYPE_REGULAR_BIT;
24
22
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