Skip to content

Commit c70b9cb

Browse files
committed
Revert "Disk (BSD): try detecting disk label"
Doesn't work This reverts commit 55b9e27.
1 parent 5ebdd9a commit c70b9cb

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/detection/disk/disk_bsd.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
#include <sys/mount.h>
44

55
#ifdef __FreeBSD__
6-
#include <sys/disklabel.h>
7-
86
static void detectFsInfo(struct statfs* fs, FFDisk* disk)
97
{
108
if(
@@ -23,9 +21,6 @@ static void detectFsInfo(struct statfs* fs, FFDisk* disk)
2321
disk->type = FF_DISK_TYPE_REGULAR_BIT;
2422

2523
ffStrbufInit(&disk->name);
26-
struct disklabel* lab = getdiskbyname(fs->f_mntfromname);
27-
if(lab)
28-
ffStrbufSetS(&disk->name, lab->d_packname);
2924
}
3025
#else
3126
void detectFsInfo(struct statfs* fs, FFDisk* disk);

0 commit comments

Comments
 (0)