diff options
author | M. Mohan Kumar <mohan@in.ibm.com> | 2011-10-25 12:10:39 +0530 |
---|---|---|
committer | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2011-10-31 12:34:17 +0530 |
commit | 2c74c2cb4bedddbfa67628fbd5f9273b4e0e9903 (patch) | |
tree | 308232ce3bd97b8e9641c88b396ed3e9c5009d90 /fsdev/file-op-9p.h | |
parent | f02b77c9bfc5c3ac93a89026f8c1d320f61f02c9 (diff) | |
download | qemu-2c74c2cb4bedddbfa67628fbd5f9273b4e0e9903.zip qemu-2c74c2cb4bedddbfa67628fbd5f9273b4e0e9903.tar.gz qemu-2c74c2cb4bedddbfa67628fbd5f9273b4e0e9903.tar.bz2 |
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 <mohan@in.ibm.com>
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.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fsdev/file-op-9p.h b/fsdev/file-op-9p.h index 908e2a5..5788ff9 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; |