From 0174fe73e605311598d9e7f03e95be9705a3e0e7 Mon Sep 17 00:00:00 2001 From: "Aneesh Kumar K.V" Date: Tue, 2 Aug 2011 11:35:54 +0530 Subject: 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 --- fsdev/file-op-9p.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'fsdev') 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 #include #include + #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 *); -- cgit v1.2.1