Revert "Disk (BSD): try detecting disk label"

Doesn't work

This reverts commit 55b9e274b6.
This commit is contained in:
李通洲
2023-08-18 21:21:34 +08:00
parent 5ebdd9a989
commit c70b9cb84e
-5
View File
@@ -3,8 +3,6 @@
#include <sys/mount.h>
#ifdef __FreeBSD__
#include <sys/disklabel.h>
static void detectFsInfo(struct statfs* fs, FFDisk* disk)
{
if(
@@ -23,9 +21,6 @@ static void detectFsInfo(struct statfs* fs, FFDisk* disk)
disk->type = FF_DISK_TYPE_REGULAR_BIT;
ffStrbufInit(&disk->name);
struct disklabel* lab = getdiskbyname(fs->f_mntfromname);
if(lab)
ffStrbufSetS(&disk->name, lab->d_packname);
}
#else
void detectFsInfo(struct statfs* fs, FFDisk* disk);