Revision 70fc55eb hw/virtio-9p-xattr.h

b/hw/virtio-9p-xattr.h
32 32
extern XattrOperations mapped_user_xattr;
33 33
extern XattrOperations passthrough_user_xattr;
34 34

  
35
extern XattrOperations mapped_pacl_xattr;
36
extern XattrOperations mapped_dacl_xattr;
37
extern XattrOperations passthrough_acl_xattr;
38
extern XattrOperations none_acl_xattr;
39

  
35 40
extern XattrOperations *mapped_xattr_ops[];
36 41
extern XattrOperations *passthrough_xattr_ops[];
37 42
extern XattrOperations *none_xattr_ops[];
......
66 71
    return lremovexattr(rpath(ctx, path), name);
67 72
}
68 73

  
74
static inline ssize_t notsup_getxattr(FsContext *ctx, const char *path,
75
                                      const char *name, void *value,
76
                                      size_t size)
77
{
78
    errno = ENOTSUP;
79
    return -1;
80
}
81

  
82
static inline int notsup_setxattr(FsContext *ctx, const char *path,
83
                                  const char *name, void *value,
84
                                  size_t size, int flags)
85
{
86
    errno = ENOTSUP;
87
    return -1;
88
}
89

  
90
static inline ssize_t notsup_listxattr(FsContext *ctx, const char *path,
91
                                       char *name, void *value, size_t size)
92
{
93
    return 0;
94
}
95

  
96
static inline int notsup_removexattr(FsContext *ctx,
97
                                     const char *path, const char *name)
98
{
99
    errno = ENOTSUP;
100
    return -1;
101
}
102

  
69 103
#endif

Also available in: Unified diff