[Sheepdog] [PATCH] sheep: configure should check if libattr exists

Liu Yuan namei.unix at gmail.com
Thu Dec 29 17:50:47 CET 2011


On 12/29/2011 11:01 PM, Christoph Hellwig wrote:

> The right fix is to replace the attr/xattr.h include with sys/xattr.h,
> which is provided by glibc.
> 


Looks that Farm uses it wrong. I include attr/xattr.h as man 2 getxattr
suggests.

When I tried sys/xattr.h, I have to additionally manually change XNOATTR
into *XNODATA* or meet an compile error.

So, I just wonder which is right way to use getxattr/setxattr system
call? If we are supposed to use sys/xattr.h, I think there is some
manual accessible to tell that we might have to use XNODATA instead of
XNOATTR for error check. Do I miss anything?

Thanks,
Yuan



More information about the sheepdog mailing list