Lower log level for xattr op error with errno ENOTSUP

This commit is contained in:
Jean-Francois Dockes
2016-02-23 08:03:17 +01:00
parent 3ed3f1db0d
commit 08a810986c
+7 -1
View File
@@ -50,7 +50,13 @@ void reapXAttrs(const RclConfig* cfg, const string& path,
// Retrieve xattrs names from files and mapping table from config
vector<string> xnames;
if (!pxattr::list(path, &xnames)) {
LOGERR(("FileInterner::reapXattrs: pxattr::list: errno %d\n", errno));
if (errno == ENOTSUP) {
LOGDEB(("FileInterner::reapXattrs: pxattr::list: errno %d\n",
errno));
} else {
LOGERR(("FileInterner::reapXattrs: pxattr::list: errno %d\n",
errno));
}
return;
}
const map<string, string>& xtof = cfg->getXattrToField();