[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 02/12] 9pfs: fix XattrOperations typedef
From: |
Greg Kurz |
Subject: |
[Qemu-devel] [PULL 02/12] 9pfs: fix XattrOperations typedef |
Date: |
Sat, 6 Jan 2018 02:07:29 +0100 |
To comply with the QEMU coding style.
Signed-off-by: Greg Kurz <address@hidden>
---
fsdev/file-op-9p.h | 5 +++--
hw/9pfs/9p-xattr.h | 5 ++---
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/fsdev/file-op-9p.h b/fsdev/file-op-9p.h
index 474c79d003f6..05b3ef357462 100644
--- a/fsdev/file-op-9p.h
+++ b/fsdev/file-op-9p.h
@@ -30,7 +30,6 @@ typedef struct FsCred
dev_t fc_rdev;
} FsCred;
-struct xattr_operations;
struct FsContext;
struct V9fsPath;
@@ -67,6 +66,8 @@ typedef struct extended_ops {
typedef struct FileOperations FileOperations;
+typedef struct XattrOperations XattrOperations;
+
/*
* Structure to store the various fsdev's passed through command line.
*/
@@ -85,7 +86,7 @@ typedef struct FsContext
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 */
diff --git a/hw/9pfs/9p-xattr.h b/hw/9pfs/9p-xattr.h
index 0d83996575e1..35bcd24f77b1 100644
--- a/hw/9pfs/9p-xattr.h
+++ b/hw/9pfs/9p-xattr.h
@@ -16,8 +16,7 @@
#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);
@@ -27,7 +26,7 @@ typedef struct xattr_operations
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);
--
2.13.6
- [Qemu-devel] [PULL 00/12] 9p patches for 2.12 20170106, Greg Kurz, 2018/01/05
- [Qemu-devel] [PULL 02/12] 9pfs: fix XattrOperations typedef,
Greg Kurz <=
- [Qemu-devel] [PULL 04/12] 9pfs: fix some type definitions, Greg Kurz, 2018/01/05
- [Qemu-devel] [PULL 05/12] 9pfs: handle: fix type definition, Greg Kurz, 2018/01/05
- [Qemu-devel] [PULL 09/12] tests: virtio-9p: fix ISR dependence, Greg Kurz, 2018/01/05
- [Qemu-devel] [PULL 03/12] fsdev: fix some type definitions, Greg Kurz, 2018/01/05
- [Qemu-devel] [PULL 10/12] tests: virtio-9p: set DRIVER_OK before using the device, Greg Kurz, 2018/01/05
- [Qemu-devel] [PULL 12/12] fsdev: improve error handling of backend init, Greg Kurz, 2018/01/05
- [Qemu-devel] [PULL 07/12] 9pfs: fix error path in pdu_submit(), Greg Kurz, 2018/01/05
- [Qemu-devel] [PULL 08/12] 9pfs: make pdu_marshal() and pdu_unmarshal() static functions, Greg Kurz, 2018/01/05
- [Qemu-devel] [PULL 06/12] 9pfs: fix type in *_parse_opts declarations, Greg Kurz, 2018/01/05
- [Qemu-devel] [PULL 01/12] virtio-9p: move unrealize/realize after virtio_9p_transport definition, Greg Kurz, 2018/01/05