summaryrefslogtreecommitdiff
path: root/fsdev/file-op-9p.h
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2011-08-02 11:35:54 +0530
committerAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2011-09-22 21:38:52 +0530
commitf79e211c561cb6c5c9feac21a4abc30044d6eadd (patch)
treef0336eb862e56d38b3081079f5407d61b15ba7a0 /fsdev/file-op-9p.h
parent752e877dc7abd2315da18fca3a3f506fc6205f6b (diff)
downloadqemu-f79e211c561cb6c5c9feac21a4abc30044d6eadd.tar.gz
qemu-f79e211c561cb6c5c9feac21a4abc30044d6eadd.tar.bz2
qemu-f79e211c561cb6c5c9feac21a4abc30044d6eadd.zip
hw/9pfs: Add init callback to fs driver
This call back can be used to do fs driver specific initialization. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Diffstat (limited to 'fsdev/file-op-9p.h')
-rw-r--r--fsdev/file-op-9p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fsdev/file-op-9p.h b/fsdev/file-op-9p.h
index 8a7dbdbea4..5221d6d798 100644
--- a/fsdev/file-op-9p.h
+++ b/fsdev/file-op-9p.h
@@ -19,6 +19,7 @@
#include <sys/stat.h>
#include <sys/uio.h>
#include <sys/vfs.h>
+
#define SM_LOCAL_MODE_BITS 0600
#define SM_LOCAL_DIR_MODE_BITS 0700
@@ -66,6 +67,7 @@ void cred_init(FsCred *);
typedef struct FileOperations
{
+ int (*init)(struct FsContext *);
int (*lstat)(FsContext *, V9fsPath *, struct stat *);
ssize_t (*readlink)(FsContext *, V9fsPath *, char *, size_t);
int (*chmod)(FsContext *, V9fsPath *, FsCred *);