]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/tmpfiles/tmpfiles.c
tmpfiles: downgrade errors when a file system does not support file attributes 663/head
authorLennart Poettering <lennart@poettering.net>
Wed, 22 Jul 2015 20:02:14 +0000 (22:02 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 22 Jul 2015 20:02:14 +0000 (22:02 +0200)
commitad75a97f7d86ddbc1b8521ae084862013c1713b0
tree2558b448afaf78a620f0890addd76d11539104a9
parent42328446f42910f5890e46cc667041db9af9c413
tmpfiles: downgrade errors when a file system does not support file attributes

This downgrades errors from setting file attributes via tmpfiles to
warnings and makes them non-fatal.

Also, as a special case, if a file system does not support file
attributes at all, then the message is downgraded to debug, so that it
is not seen at all.

With this change reiserfs should not see any messages at all anymore
(since it apparently does not implement file attributes at all), but XFS
will still get a warning but no failure. The warning is something the
XFS kernel folks should fix though, by adjusting their file attributes
behaviour to be identical to ext234's.

Fixes #560.
src/tmpfiles/tmpfiles.c