]> git.baikalelectronics.ru Git - kernel.git/commit
9p: Include fsync support for 9p client
authorM. Mohan Kumar <mohan@in.ibm.com>
Mon, 8 Feb 2010 21:36:48 +0000 (15:36 -0600)
committerEric Van Hensbergen <ericvh@arly004.austin.ibm.com>
Mon, 8 Feb 2010 21:36:48 +0000 (15:36 -0600)
commitd025910d8a46e76b13e341ef773ef7275c99fe91
tree82f24249a7e970dc089406d334bd5d49cfecb7d1
parent90ead83fb8f2ca09831f3ba5bd1447cc1ab1e765
9p: Include fsync support for 9p client

Implement the fsync in the client side by marking stat field values to 'don't touch' so that server may
interpret it as a request to guarantee that the contents of the associated file are committed to stable
storage before the Rwstat message is returned.

Without this patch, calling fsync on a 9p file results in "Invalid argument" error. Please check the attached
C program.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: M. Mohan Kumar <mohan@in.ibm.com>
Acked-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
fs/9p/v9fs_vfs.h
fs/9p/vfs_file.c
fs/9p/vfs_inode.c