[systemd-devel] [PATCH V3] Allow systemd-tmpfiles to set file/directory attributes
kreijack at libero.it
Tue Mar 10 13:07:39 PDT 2015
This set of patches add two new line types to the tmpfiles files format.
These new types of line are 'h' and 'H' (the recursively version), 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  for further information.
v1: first issue
v2: accepted several suggestion on the style; added function
change_attr_fd(); used the _cleanup_close_; returned
v3: swapped arguments of change_attr_fd() in path_set_attrib()
 Re: [systemd-devel] [RFC][PATCH] Add option to enable COW for journal file
gpg @keyserver.linux.it: Goffredo Baroncelli <kreijackATinwind.it>
Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5
More information about the systemd-devel