[systemd-devel] [PATCH] Allow systemd-tmpfiles to set file/directory attributes

Goffredo Baroncelli kreijack at libero.it
Sun Mar 8 04:48:24 PDT 2015

Hi all,
This set of patches add two new line types to the tmpfiles files format.
These new types of line are 'H' and 'h', and allow to change the file/
directory attributes, like chattr(1) does.

One of the motivation of these patches is to get rid of the commit
11689d2a which force the NOCOW flag for the journal files. This was 
needed because systemd-journald has very poor performance when the
filesytem is BTRFS due to its the COW behavior. My concern is that 
the NOCOW flag also prevent BTRFS to rebuild a corrupted file from a 
good copy if it is available. 

With this patch, now the NOCOW flag can be set by systemd-tmpfiles.
See [1] for further information.


[1] Re: [systemd-devel] [RFC][PATCH] Add option to enable COW for journal file

More information about the systemd-devel mailing list