diff --git a/configure.ac b/configure.ac index 93fdc3a344e..4dd4798f4a0 100644 --- a/configure.ac +++ b/configure.ac @@ -97,7 +97,7 @@ AC_CHECK_HEADER([boost/spirit.hpp], [AC_MSG_ERROR([Sorry, you need to install the Boost spirit parser library (libboost-dev on debian)])]) AC_LANG([C]) -AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdint.h stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h sys/param.h sys/socket.h sys/statvfs.h sys/time.h sys/vfs.h syslog.h unistd.h utime.h]) +AC_CHECK_HEADERS([sys/xattr.h arpa/inet.h fcntl.h netdb.h netinet/in.h stdint.h stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h sys/param.h sys/socket.h sys/statvfs.h sys/time.h sys/vfs.h syslog.h unistd.h utime.h]) # Checks for typedefs, structures, and compiler characteristics. AC_HEADER_STDBOOL diff --git a/src/mds/Server.cc b/src/mds/Server.cc index b5f7e1c34d8..be81268ad1d 100644 --- a/src/mds/Server.cc +++ b/src/mds/Server.cc @@ -49,7 +49,7 @@ #include #include -#include +#include #include #include @@ -1786,8 +1786,8 @@ void Server::handle_client_setxattr(MDRequest *mdr) return; } if ((flags & XATTR_REPLACE) && !cur->xattrs.count(name)) { - dout(10) << "setxattr '" << name << "' XATTR_REPLACE and ENOATTR on " << *cur << dendl; - reply_request(mdr, -ENOATTR); + dout(10) << "setxattr '" << name << "' XATTR_REPLACE and ENODATA on " << *cur << dendl; + reply_request(mdr, -ENODATA); return; } @@ -1836,8 +1836,8 @@ void Server::handle_client_removexattr(MDRequest *mdr) string name(req->get_path2()); if (cur->xattrs.count(name) == 0) { - dout(10) << "removexattr '" << name << "' and ENOATTR on " << *cur << dendl; - reply_request(mdr, -ENOATTR); + dout(10) << "removexattr '" << name << "' and ENODATA on " << *cur << dendl; + reply_request(mdr, -ENODATA); return; }