Xattrs are not supported
Asked Answered
G

2

12

I am trying to perform a little testing of XATTRs. I recompiled my kernel with ALL the XATTRs enabled.

Now, when I include the header of xattrs :

#include <attr/xattr.h>

I receive an error no such file or directory. I am using UBUNTU 11.10 64 bit system, and I cannot understand why XATTRs are not supported ?

Genitals answered 26/6, 2012 at 6:49 Comment(0)
L
18

Adding support in the kernel doesn't make the header files magically appear on their own! Install libattr1-dev.

Lim answered 26/6, 2012 at 6:51 Comment(2)
I have already installed it, but the problem hasn't been passed yet.Genitals
on centos that's libattr-develTzong
L
1

"attr/xattr.h" was replaced by "sys/xattr.h" so try this instead #include <sys/xattr.h>

Lynnlynna answered 17/11, 2018 at 16:36 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.