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, first off, both platforms support extended attributes. The interfaces for both of them are different though. On illumos, if you read http://illumos.org/man/5/fsattr, you'll see how you can open them. So for example, in this case, while glibc provides the getxattr() and setxattr() interfaces, you can implement them in terms of openat() and O_XATTR through a translation library. It might not be the worst thing. See this mail from a couple months ago that talks about some of the differences: https://www.listbox.com/member/archive/182179/2016/02/sort/time_rev/page/3/entry/6:323/20160225091351:FC7AECD2-DBC9-11E5-A76D-591BF010038B/ Robert ------------------------------------------- smartos-discuss Archives: https://www.listbox.com/member/archive/184463/=now RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00 Modify Your Subscription: https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb Powered by Listbox: http://www.listbox.com
