journal-nocow.conf 1.1 KB

123456789101112131415161718192021222324252627
  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. # See tmpfiles.d(5) for details
  8. # Set the NOCOW attribute for directories of journal files. This flag
  9. # is inherited by their new files and sub-directories. Matters only
  10. # for btrfs filesystems.
  11. #
  12. # WARNING: Enabling the NOCOW attribute improves journal performance
  13. # substantially, but also disables the btrfs checksum logic. In
  14. # btrfs RAID filesystems the checksums are needed for rebuilding
  15. # corrupted files. Without checksums such rebuilds are not
  16. # possible.
  17. #
  18. # In a single-disk filesystem (or a filesystem without redundancy)
  19. # enabling the NOCOW attribute for journal files is safe, because
  20. # they have their own checksums and a rebuilding wouldn't be possible
  21. # in any case.
  22. h /var/log/journal - - - - +C
  23. h /var/log/journal/%m - - - - +C
  24. h /var/log/journal/remote - - - - +C