From d554ad3bab18794c8c7bf4086eed59b777539dc4 Mon Sep 17 00:00:00 2001 From: clonejo Date: Fri, 8 Mar 2024 19:51:23 +0100 Subject: [PATCH] Add bcachefs fs tracking Further info on bcachefs: https://bcachefs.org/ - bcachefs has entered the stable kernel in 6.7. - Some further mkfs/non-mount options, that could conceivably be tracked: number and type of disks in bcachefs and per target type, usage of options like --replicas, --erasure_code, --encrypted, compression. - Since bcachefs does checksumming, recovered/non-recovered errors could also be tracked. --- hw-probe.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw-probe.pl b/hw-probe.pl index 35b60a4..fd55957 100644 --- a/hw-probe.pl +++ b/hw-probe.pl @@ -10689,7 +10689,7 @@ () next; } - if($Line=~/ (ext[234]|btrfs|xfs) / and index($Line, "/")==-1) { + if($Line=~/ (ext[234]|btrfs|xfs|bcachefs) / and index($Line, "/")==-1) { $Sys{"Dual_boot"} = 1; } } @@ -10861,7 +10861,7 @@ () if(not $Sys{"Filesystem"}) { - my @Filesystems = ("btrfs", "jfs", "reiserfs", "xfs", "zfs", "aufs", "ext[234]", "overlay", "hammer2", "ufs", "ffs"); + my @Filesystems = ("btrfs", "jfs", "reiserfs", "xfs", "zfs", "aufs", "ext[234]", "overlay", "hammer2", "ufs", "ffs", "bcachefs"); LOOP: foreach my $Log ($Df, $Lsblk, $Findmnt) {