Statistics
| Branch: | Revision:

root / hw / 9pfs / cofile.c @ a8aec295

History | View | Annotate | Download (6.7 kB)

# Date Author Comment
db431f6a 05/28/2013 12:53 pm Gabriel de Perthuis

hw/9pfs: Be robust against paths without FS_IOC_GETVERSION

9P optionally uses the FS_IOC_GETVERSION ioctl to get information about
a file's version (sometimes called generation number).

The code checks for supported filesystems at mount time, but some paths...

1de7afc9 12/19/2012 09:32 am Paolo Bonzini

misc: move include files to include/qemu/

Signed-off-by: Paolo Bonzini <>

737e150e 12/19/2012 09:31 am Paolo Bonzini

block: move include files to include/block/

Signed-off-by: Paolo Bonzini <>

2c30dd74 01/19/2012 08:51 am Aneesh Kumar K.V

hw/9pfs: Add new security model mapped-file.

This enable us to do passthrough equivalent security model on NFS directory.
NFS server mostly do root squashing and don't support xattr. Hence we cannot
use 'passthrough' or 'mapped' security model

Also added "mapped-xattr" security to indicate earlier "mapped" security model...

8b888272 12/04/2011 07:05 pm Aneesh Kumar K.V

hw/9pfs: Use the correct file descriptor in Fsdriver Callback

Fsdriver callback that operate on file descriptor need to
differentiate between directory fd and file fd.

Based on the original patch from Sassan Panahinejad <>

Signed-off-by: Aneesh Kumar K.V <>

cc720ddb 10/31/2011 09:04 am Aneesh Kumar K.V

hw/9pfs: Abstract open state of fid to V9fsFidOpenState

To implement synthetic file system in Qemu we may not really
require file descriptor and Dir *. Make generic code use
V9fsFidOpenState instead.

Signed-off-by: Aneesh Kumar K.V <>

e06a765e 10/15/2011 01:00 pm Harsh Prateek Bora

hw/9pfs: Add st_gen support in getattr reply

This patch use file system specific ioctl for getting i_generation
value. Not all file system support the ioctl. So we add an export
specific extended operation and assign right callback for the
file system that support i_generation ioctl...

02cb7f3a 09/22/2011 07:08 pm Aneesh Kumar K.V

hw/9pfs: Use read-write lock for protecting fid path.

On rename we take the write lock and this ensure path
doesn't change as we operate on them.

Signed-off-by: Aneesh Kumar K.V <>

2289be19 09/22/2011 07:08 pm Aneesh Kumar K.V

hw/9pfs: Move fid pathname tracking to seperate data type.

This enables us to add handles to track fids later. The
V9fsPath added is similar to V9fsString except that the
size include the NULL byte also.

Signed-off-by: Aneesh Kumar K.V <>

532decb7 09/22/2011 07:08 pm Aneesh Kumar K.V

hw/9pfs: Add fs driver specific details to fscontext

Add a new context flag PATHNAME_FSCONTEXT and indicate whether
the fs driver track fid using path names. Also add a private
pointer that help us to track fs driver specific values in there

Signed-off-by: Aneesh Kumar K.V <>

bccacf6c 09/22/2011 07:08 pm Aneesh Kumar K.V

hw/9pfs: Implement TFLUSH operation

Signed-off-by: Aneesh Kumar K.V <>

7a462745 08/25/2011 05:46 pm Aneesh Kumar K.V

hw/9pfs: Add file descriptor reclaim support

[M. Mohan Kumar <> removed some unused variables]

Signed-off-by: Aneesh Kumar K.V <>

7eafdcc9 08/22/2011 07:14 am Aneesh Kumar K.V

hw/9pfs: Add yield support for preadv coroutine

Signed-off-by: Aneesh Kumar K.V <>

f6b3c976 08/22/2011 07:14 am Aneesh Kumar K.V

hw/9pfs: Add yield support for pwritev coroutine

Signed-off-by: Aneesh Kumar K.V <>

c6c069b0 08/22/2011 07:14 am Venkateswararao Jujjuri

hw/9pfs: Add yield support for link coroutine

Signed-off-by: Venkateswararao Jujjuri <>
Signed-off-by: Aneesh Kumar K.V <>

4743d1f5 08/22/2011 07:14 am Aneesh Kumar K.V

hw/9pfs: Add yield support for fsync coroutine

Signed-off-by: Aneesh Kumar K.V <>

bed4352c 08/22/2011 07:14 am Aneesh Kumar K.V

hw/9pfs: Add yeild support for clunk related coroutine

This include lsetxattr, lremovexattr, closedir and close.

Signed-off-by: Aneesh Kumar K.V <>

e4de4232 08/22/2011 06:51 am Venkateswararao Jujjuri

hw/9pfs: Add yield support for open2 coroutine

Signed-off-by: Venkateswararao Jujjuri <>
Signed-off-by: Aneesh Kumar K.V <>

f6b7f0ab 08/22/2011 06:49 am Aneesh Kumar K.V

hw/9pfs: Add yield support for open and opendir coroutine

Signed-off-by: Aneesh Kumar K.V <>

03feb1e1 08/22/2011 06:44 am Aneesh Kumar K.V

hw/9pfs: Add yeild support for fstat coroutine

Signed-off-by: Aneesh Kumar K.V <>

172198d4 08/08/2011 09:12 pm Aneesh Kumar K.V

hw/9pfs: Add yield support to lstat coroutine

Signed-off-by: Aneesh Kumar K.V <>