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

Liu Yuan namei.unix at gmail.com
Fri Dec 30 06:52:52 CET 2011


On 12/30/2011 12:50 AM, Liu Yuan wrote:

> 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


s/X{NOATTR,NODATA}/E{NOATTR, NODATA}



More information about the sheepdog mailing list