Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrap xattr IO functions with DCOPY_USE_XATTRS #583

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/common/mfu_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
#include <assert.h>
#include <libgen.h>

#if DCOPY_USE_XATTRS
#include <sys/xattr.h>
#endif

#include "mfu.h"
#include "mfu_errors.h"

Expand Down Expand Up @@ -1489,6 +1493,7 @@ struct dirent* mfu_file_readdir(DIR* dirp, mfu_file_t* mfu_file)
}
}

#if DCOPY_USE_XATTRS
/* list xattrs (link interrogation) */
ssize_t mfu_file_llistxattr(const char* path, char* list, size_t size, mfu_file_t* mfu_file)
{
Expand Down Expand Up @@ -1665,3 +1670,4 @@ int daos_lsetxattr(const char* path, const char* name, const void* value, size_t
return mfu_errno2rc(ENOSYS);
#endif
}
#endif DCOPY_USE_XATTRS