mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
Revert "Disk (BSD): try detecting disk label"
Doesn't work
This reverts commit 55b9e274b6.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user