1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-01 04:58:35 +03:00

vfs_fruit: cleanup metadata and resource xattr name defines

Just some cleanup, no change in behaviour. This also removes the hokey
tag. :)

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12490

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Ralph Boehme 2017-02-03 16:43:26 +01:00 committed by Jeremy Allison
parent 73557605fd
commit e4d1f8354f

View File

@ -100,17 +100,15 @@ static int vfs_fruit_debug_level = DBGC_VFS;
#define FRUIT_PARAM_TYPE_NAME "fruit"
#define ADOUBLE_NAME_PREFIX "._"
/*
* REVIEW:
* This is hokey, but what else can we do?
*/
#define NETATALK_META_XATTR "org.netatalk.Metadata"
#define NETATALK_RSRC_XATTR "org.netatalk.Metadata"
#if defined(HAVE_ATTROPEN)
#define AFPINFO_EA_NETATALK NETATALK_META_XATTR
#define AFPRESOURCE_EA_NETATALK "org.netatalk.ResourceFork"
#define AFPRESOURCE_EA_NETATALK NETATALK_RSRC_XATTR
#else
#define AFPINFO_EA_NETATALK "user." NETATALK_META_XATTR
#define AFPRESOURCE_EA_NETATALK "user.org.netatalk.ResourceFork"
#define AFPRESOURCE_EA_NETATALK "user." NETATALK_RSRC_XATTR
#endif
enum apple_fork {APPLE_FORK_DATA, APPLE_FORK_RSRC};