master ohmu/fastfetch-openbsd / src / detection / btrfs / btrfs.h
ohmu  ·  2026-10-15
 1#pragma once
 2
 3#include "fastfetch.h"
 4#include "modules/btrfs/option.h"
 5
 6typedef struct FFBtrfsDiskUsage {
 7    uint64_t total;
 8    uint64_t used;
 9    const char* type;
10    const char* profile; // single / dup / raidx
11    uint8_t copies;
12} FFBtrfsDiskUsage;
13
14typedef struct FFBtrfsResult {
15    FFstrbuf name;
16    FFstrbuf uuid;
17    FFstrbuf devices;
18    FFstrbuf features;
19    uint32_t generation;
20    uint32_t nodeSize;
21    uint32_t sectorSize;
22    uint64_t totalSize;
23    uint64_t globalReservationUsed;
24    uint64_t globalReservationTotal;
25    FFBtrfsDiskUsage allocation[3];
26} FFBtrfsResult;
27
28const char* ffDetectBtrfs(FFlist* result /* list of FFBtrfsResult */);