9pfs: fix XattrOperations typedef
To comply with the QEMU coding style. Signed-off-by: Greg Kurz <groug@kaod.org>
This commit is contained in:
parent
bd3be4dbbf
commit
01847522bc
@ -30,7 +30,6 @@ typedef struct FsCred
|
|||||||
dev_t fc_rdev;
|
dev_t fc_rdev;
|
||||||
} FsCred;
|
} FsCred;
|
||||||
|
|
||||||
struct xattr_operations;
|
|
||||||
struct FsContext;
|
struct FsContext;
|
||||||
struct V9fsPath;
|
struct V9fsPath;
|
||||||
|
|
||||||
@ -67,6 +66,8 @@ typedef struct extended_ops {
|
|||||||
|
|
||||||
|
|
||||||
typedef struct FileOperations FileOperations;
|
typedef struct FileOperations FileOperations;
|
||||||
|
typedef struct XattrOperations XattrOperations;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Structure to store the various fsdev's passed through command line.
|
* Structure to store the various fsdev's passed through command line.
|
||||||
*/
|
*/
|
||||||
@ -85,7 +86,7 @@ typedef struct FsContext
|
|||||||
uid_t uid;
|
uid_t uid;
|
||||||
char *fs_root;
|
char *fs_root;
|
||||||
int export_flags;
|
int export_flags;
|
||||||
struct xattr_operations **xops;
|
XattrOperations **xops;
|
||||||
struct extended_ops exops;
|
struct extended_ops exops;
|
||||||
FsThrottle *fst;
|
FsThrottle *fst;
|
||||||
/* fs driver specific data */
|
/* fs driver specific data */
|
||||||
|
@ -16,8 +16,7 @@
|
|||||||
|
|
||||||
#include "qemu/xattr.h"
|
#include "qemu/xattr.h"
|
||||||
|
|
||||||
typedef struct xattr_operations
|
struct XattrOperations {
|
||||||
{
|
|
||||||
const char *name;
|
const char *name;
|
||||||
ssize_t (*getxattr)(FsContext *ctx, const char *path,
|
ssize_t (*getxattr)(FsContext *ctx, const char *path,
|
||||||
const char *name, void *value, size_t size);
|
const char *name, void *value, size_t size);
|
||||||
@ -27,7 +26,7 @@ typedef struct xattr_operations
|
|||||||
void *value, size_t size, int flags);
|
void *value, size_t size, int flags);
|
||||||
int (*removexattr)(FsContext *ctx,
|
int (*removexattr)(FsContext *ctx,
|
||||||
const char *path, const char *name);
|
const char *path, const char *name);
|
||||||
} XattrOperations;
|
};
|
||||||
|
|
||||||
ssize_t local_getxattr_nofollow(FsContext *ctx, const char *path,
|
ssize_t local_getxattr_nofollow(FsContext *ctx, const char *path,
|
||||||
const char *name, void *value, size_t size);
|
const char *name, void *value, size_t size);
|
||||||
|
Loading…
Reference in New Issue
Block a user