Btrfsd
Tiny Btrfs maintenance daemon
Install / Use
/learn @ximion/BtrfsdREADME
Btrfsd - Tiny Btrfs maintenance daemon
Btrfsd is a lightweight daemon that takes care of all Btrfs filesystems on a Linux system.
It can:
- Check for detected errors and broadcast a warning if any were found, or optionally send an email
- Perform scrub periodically if the system is not on battery
- Optionally schedule balancing operations as well
The daemon is explicitly designed to be run on any system, from a small notebook to a large storage server. Depending on the system, it should make the best possible decision for running maintenance jobs, but may also be tweaked by the user. If no Btrfs filesystems are found, the daemon will be completely inert.
Btrfsd is called every hour via a systemd timer with the lowest CPU priority, so its impact
on system performance should be extremely low.
You can tweak the daemon's default settings by editing /etc/btrfsd/settings.conf,
check man btrfsd(8) for more documentation.
Installation
Btrfsd is packaged in a few Linux distributions for easy installation:
Building
Btrfsd can be built & installed from source using the Meson build system. It requires GLib, JSON-GLib, libsystemd, libmount and btrfs-progs.
On Debian-based systems, you can install all dependencies via:
sudo apt install btrfs-progs docbook-xsl libglib2.0-dev libjson-glib-dev libsystemd-dev systemd-dev meson xsltproc
You can the build the daemon:
mkdir build && cd build
meson setup --buildtype=debugoptimized ..
ninja
ninja install
Related Skills
node-connect
345.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
106.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
345.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
345.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
