diff options
| author | sumuel <samuel@yakubos.org> | 2026-08-17 20:44:55 +0000 |
|---|---|---|
| committer | sumuel <samuel@yakubos.org> | 2026-08-17 20:44:55 +0000 |
| commit | 76424950e373d3b04ac3dd13019151bfba3e8423 (patch) | |
| tree | 4c3cfdbda039e592b9186be3e28f8d7cfd439e8a /src/detection/btrfs/btrfs.h | |
Add the files
Diffstat (limited to 'src/detection/btrfs/btrfs.h')
| -rw-r--r-- | src/detection/btrfs/btrfs.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/detection/btrfs/btrfs.h b/src/detection/btrfs/btrfs.h new file mode 100644 index 0000000..08ea4e9 --- /dev/null +++ b/src/detection/btrfs/btrfs.h @@ -0,0 +1,28 @@ +#pragma once + +#include "fastfetch.h" +#include "modules/btrfs/option.h" + +typedef struct FFBtrfsDiskUsage { + uint64_t total; + uint64_t used; + const char* type; + const char* profile; // single / dup / raidx + uint8_t copies; +} FFBtrfsDiskUsage; + +typedef struct FFBtrfsResult { + FFstrbuf name; + FFstrbuf uuid; + FFstrbuf devices; + FFstrbuf features; + uint32_t generation; + uint32_t nodeSize; + uint32_t sectorSize; + uint64_t totalSize; + uint64_t globalReservationUsed; + uint64_t globalReservationTotal; + FFBtrfsDiskUsage allocation[3]; +} FFBtrfsResult; + +const char* ffDetectBtrfs(FFlist* result /* list of FFBtrfsResult */); |