systemd/tmpfiles.d
Goffredo Baroncelli 3a92e4ba47 tmpfiles: Add +C attrib to the journal files directories
Add the +C file attribute (NOCOW) to the journal directories, so that
the flag is inherited automatically for new journal files created in
them. The journal write pattern is problematic on btrfs file systems as
it results in badly fragmented files when copy-on-write (COW) is used:
the performances decreases substantially over time.

To avoid this issue, this tmpfile.d snippet sets the NOCOW attribute to
the journal files directories, so newly created journal files inherit
the NCOOW attribute that disables copy-on-write.

Be aware that the NOCOW file attribute also disables btrfs checksumming
for these files, and thus prevents btrfs from rebuilding corrupted files
on a RAID filesystem.

In a single disk filesystems (or filesystems without redundancy) it is
safe to use the NOCOW flags without drawbacks, since the journal files
contain their own checksumming.
2015-04-13 16:37:52 +02:00
..
.gitignore build-sys: configure the list of system users, files and directories 2014-11-30 23:50:19 -05:00
etc.conf.m4 tmpfiles.d: only copy /etc/pam.d if PAM is present 2015-03-03 12:55:34 -05:00
journal-nocow.conf tmpfiles: Add +C attrib to the journal files directories 2015-04-13 16:37:52 +02:00
legacy.conf tmpfiles: always recreate the most basic directory structure in /var 2014-06-11 00:12:21 +02:00
Makefile journal: add preliminary incomplete implementation 2011-10-07 22:02:05 +02:00
systemd-nologin.conf tmpfiles: introduce the concept of unsafe operations 2013-12-24 15:48:06 -05:00
systemd-remote.conf journal-remote: add units and read certs from default locations 2014-07-15 22:23:49 -04:00
systemd.conf.m4 tmpfiles: use ACL magic on journal directories 2015-01-22 01:14:53 -05:00
tmp.conf tmpfiles.d: upgrade a couple of directories we create at boot to subvolumes 2014-12-28 02:08:40 +01:00
var.conf nspawn,machined: change default container image location from /var/lib/container to /var/lib/machines 2015-01-15 01:47:21 +01:00
x11.conf tmpfiles: introduce the concept of unsafe operations 2013-12-24 15:48:06 -05:00