From 2c74c2cb4bedddbfa67628fbd5f9273b4e0e9903 Mon Sep 17 00:00:00 2001 From: "M. Mohan Kumar" Date: Tue, 25 Oct 2011 12:10:39 +0530 Subject: hw/9pfs: Read-only support for 9p export A new fsdev parameter "readonly" is introduced to control accessing 9p export. "readonly" can be used to specify the access type. By default "rw" access is given to 9p export. Signed-off-by: M. Mohan Kumar Signed-off-by: Aneesh Kumar K.V --- fsdev/file-op-9p.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'fsdev/file-op-9p.h') diff --git a/fsdev/file-op-9p.h b/fsdev/file-op-9p.h index 908e2a5edc..5788ff911c 100644 --- a/fsdev/file-op-9p.h +++ b/fsdev/file-op-9p.h @@ -56,10 +56,12 @@ typedef struct extended_ops { * On failure ignore the error. */ #define V9FS_SM_NONE 0x00000010 - +#define V9FS_RDONLY 0x00000020 #define V9FS_SEC_MASK 0x0000001C + + typedef struct FsContext { uid_t uid; -- cgit v1.2.1