Opened 15 years ago
Closed 15 years ago
#4372 closed enhancement (fixed)
[patch] Add BSD xattr support to attribute emulation layer
Reported by: | VinDuv | Owned by: | bonefish |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Build System | Version: | R1/pre-alpha1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
This patch adds support for the for BSD-style xattrs interface (which is almost identical to Linux's attr/xattr.h, except in regard of symlink traversing options)
It allows building Haiku on Mac OS X with --use-xattr from a ZFS volume (HFS+ does not work though).
Attachments (1)
Change History (4)
by , 15 years ago
Attachment: | bsdxattr.diff added |
---|
follow-up: 2 comment:1 by , 15 years ago
comment:2 by , 15 years ago
Replying to bonefish:
How does the symlink behavior differ? Are symlinks always or never followed by the functions? In the former case the semantics of the mapped attribute API would differ.
Like in Linux you can choose to follow symlinks or not, but instead of choosing between two functions (getxattr/lgetxattr), you add the flag XATTR_NOFOLLOW to the options.
http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/man2/fgetxattr.2.html
How does the symlink behavior differ? Are symlinks always or never followed by the functions? In the former case the semantics of the mapped attribute API would differ.