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 3f3b3a15c7
commit fee2dff744

View file

@ -50,7 +50,13 @@ void reapXAttrs(const RclConfig* cfg, const string& path,
// Retrieve xattrs names from files and mapping table from config // Retrieve xattrs names from files and mapping table from config
vector<string> xnames; vector<string> xnames;
if (!pxattr::list(path, &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; return;
} }
const map<string, string>& xtof = cfg->getXattrToField(); const map<string, string>& xtof = cfg->getXattrToField();