dev_t fc_rdev;
} FsCred;
-struct xattr_operations;
struct FsContext;
struct V9fsPath;
typedef struct FileOperations FileOperations;
+typedef struct XattrOperations XattrOperations;
+
/*
* Structure to store the various fsdev's passed through command line.
*/
uid_t uid;
char *fs_root;
int export_flags;
- struct xattr_operations **xops;
+ XattrOperations **xops;
struct extended_ops exops;
FsThrottle *fst;
/* fs driver specific data */
#include "qemu/xattr.h"
-typedef struct xattr_operations
-{
+struct XattrOperations {
const char *name;
ssize_t (*getxattr)(FsContext *ctx, const char *path,
const char *name, void *value, size_t size);
void *value, size_t size, int flags);
int (*removexattr)(FsContext *ctx,
const char *path, const char *name);
-} XattrOperations;
+};
ssize_t local_getxattr_nofollow(FsContext *ctx, const char *path,
const char *name, void *value, size_t size);