Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
xattr support for NetBSD #1332
NetBSD has a compatibility layer to Linux' xattr API: https://ftp.netbsd.org/pub/NetBSD/NetBSD-current/src/sys/sys/xattr.h (w/ no access to the system namespace, whatever that's used for)
The native mechanism is sys/extattr.h - this then also allows access to the system namespace.
Edit: In fact, it seems that NetBSD's extattr API is identical to FreeBSD's. So this might just be a matter of adding "netbsd" in xattr to the platform check.
Note: OpenBSD has neither ACLs nor xattrs.
Can't get it to work, neither do the command line utilities (listextattr(1) etc). Everything's a EOPNOTSUP, independent of file system (FFS, UDF, ext2fs). Looking at the kernel code and config it should work with at least FFS and UDF (after initattr etc)
If someone uses NetBSD and Borg, feel free to test it whether it actually works (db6ce48)
elif sys.platform.startswith(('freebsd', 'netbsd')):