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)

bsdxattr.diff (2.1 KB ) - added by VinDuv 15 years ago.

Download all attachments as: .zip

Change History (4)

by VinDuv, 15 years ago

Attachment: bsdxattr.diff added

comment:1 by bonefish, 15 years ago

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.

in reply to:  1 comment:2 by VinDuv, 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

comment:3 by bonefish, 15 years ago

Resolution: fixed
Status: newclosed

Thanks! Applied in hrev32841.

Note: See TracTickets for help on using tickets.