[smartos-discuss] 答复: [smartos-discuss] getxattr()/setxattr() on SmartOS platform

2016-06-16 Thread 龙白滔
evaluation. Any idea to make it work on lx brand zone? Thanks. Baitao of Briphant team from China 发件人: Robert Mustacchi <r...@joyent.com> 发送时间: 2016年6月16日 21:56:09 收件人: smartos-discuss@lists.smartos.org 主题: Re: [smartos-discuss] getxattr()/setxattr() on S

Re: [smartos-discuss] getxattr()/setxattr() on SmartOS platform

2016-06-16 Thread Robert Mustacchi
On 6/15/16 22:28 , 龙白滔 wrote: > 2. are getxattr()/setxaddr() natively supported on SmartOS platform? if not > so, how to achieve similar purpose? While it seems like you've already discovered the answer to your first question, I thought I'd go through and answer this in a bit more detail. So,

[smartos-discuss] getxattr()/setxattr() on SmartOS platform

2016-06-15 Thread 龙白滔
Hello, all, We ran Sheepdog server in lx-branded zone and the execution went to "else" block while "if" one is expected. #define MDNAME "user.md.size" #define MDSIZE sizeof(uint64_t) if (getxattr(path, MDNAME, , MDSIZE) < 0) { if (errno == ENODATA) {