Revision fc22118d hw/file-op-9p.h

b/hw/file-op-9p.h
47 47
    dev_t   fc_rdev;
48 48
} FsCred;
49 49

  
50
struct xattr_operations;
51

  
50 52
typedef struct FsContext
51 53
{
52 54
    char *fs_root;
53 55
    SecModel fs_sm;
54 56
    uid_t uid;
57
    struct xattr_operations **xops;
55 58
} FsContext;
56 59

  
57 60
extern void cred_init(FsCred *);
......
94 97
    int (*lremovexattr)(FsContext *, const char *, const char *);
95 98
    void *opaque;
96 99
} FileOperations;
100

  
101
static inline const char *rpath(FsContext *ctx, const char *path)
102
{
103
    /* FIXME: so wrong... */
104
    static char buffer[4096];
105
    snprintf(buffer, sizeof(buffer), "%s/%s", ctx->fs_root, path);
106
    return buffer;
107
}
97 108
#endif

Also available in: Unified diff