]> git.ipfire.org Git - thirdparty/systemd.git/blame - tmpfiles.d/journal-nocow.conf
dlfcn-util: add dlsym_many_and_warn() helper
[thirdparty/systemd.git] / tmpfiles.d / journal-nocow.conf
CommitLineData
3a92e4ba
GB
1# This file is part of systemd.
2#
3# systemd is free software; you can redistribute it and/or modify it
4# under the terms of the GNU Lesser General Public License as published by
5# the Free Software Foundation; either version 2.1 of the License, or
6# (at your option) any later version.
7
8# See tmpfiles.d(5) for details
9
10# Set the NOCOW attribute for directories of journal files. This flag
9c63ba98 11# is inherited by their new files and sub-directories. Matters only
3a92e4ba
GB
12# for btrfs filesystems.
13#
14# WARNING: Enabling the NOCOW attribute improves journal performance
15# substantially, but also disables the btrfs checksum logic. In
16# btrfs RAID filesystems the checksums are needed for rebuilding
17# corrupted files. Without checksums such rebuilds are not
18# possible.
19#
20# In a single-disk filesystem (or a filesystem without redundancy)
21# enabling the NOCOW attribute for journal files is safe, because
22# they have their own checksums and a rebuilding wouldn't be possible
23# in any case.
24
25h /var/log/journal - - - - +C
26h /var/log/journal/%m - - - - +C
27h /var/log/journal/remote - - - - +C