Merge pull request #663 from poettering/tmpfiles-chattr-enotty

tmpfiles: downgrade errors when a file system does not support file a…
This commit is contained in:
Daniel Mack 2015-07-23 09:12:43 +02:00
commit e25aa3453b

View file

@ -955,7 +955,8 @@ static int path_set_attribute(Item *item, const char *path) {
r = chattr_fd(fd, f, item->attribute_mask); r = chattr_fd(fd, f, item->attribute_mask);
if (r < 0) if (r < 0)
return log_error_errno(r, log_full_errno(r == -ENOTTY ? LOG_DEBUG : LOG_WARNING,
r,
"Cannot set file attribute for '%s', value=0x%08x, mask=0x%08x: %m", "Cannot set file attribute for '%s', value=0x%08x, mask=0x%08x: %m",
path, item->attribute_value, item->attribute_mask); path, item->attribute_value, item->attribute_mask);