[Pvfs2-cvs] commit by kunkel in pvfs2/src/apps/admin: pvfs2-xattr.c
CVS commit program
cvs at parl.clemson.edu
Thu Mar 15 04:49:47 EST 2007
Update of /projects/cvsroot/pvfs2/src/apps/admin
In directory parlweb1:/tmp/cvs-serv31428/src/apps/admin
Modified Files:
Tag: kunkel-migration-branch
pvfs2-xattr.c
Log Message:
Upgrade to current CVS version..
Index: pvfs2-xattr.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/apps/admin/pvfs2-xattr.c,v
diff -p -u -r1.3.2.1 -r1.3.2.2
--- pvfs2-xattr.c 17 Feb 2007 11:16:03 -0000 1.3.2.1
+++ pvfs2-xattr.c 15 Mar 2007 09:49:47 -0000 1.3.2.2
@@ -22,14 +22,8 @@
#include "pint-util.h"
#include "pvfs2-internal.h"
#include "pvfs2-req-proto.h"
-#ifdef HAVE_SYS_XATTR_H
-#include <sys/xattr.h>
-#endif
-
-#ifdef HAVE_ATTR_XATTR_H
-#include <attr/xattr.h>
-#endif
+#include "xattr-utils.h"
#define VALBUFSZ 1024
@@ -219,7 +213,11 @@ static int pvfs2_eattr(int get, file_obj
}
else
{
+#ifdef HAVE_FSETXATTR
if ((ret = fsetxattr(obj->u.ufs.fd, key_p->buffer, val_p->buffer, val_p->buffer_sz, 0)) < 0)
+#else
+ errno = ENOSYS;
+#endif
{
perror("fsetxattr:");
return -1;
More information about the Pvfs2-cvs
mailing list