]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
ceph: file operations
authorSage Weil <sage@newdream.net>
Wed, 22 Jul 2009 19:38:18 +0000 (12:38 -0700)
committerSage Weil <sage@newdream.net>
Wed, 22 Jul 2009 19:38:18 +0000 (12:38 -0700)
commit19feecac9090c3f941135470e692bd65bc179654
tree85e96e5cbceded25d4f9b0f669705fe4f1ea42ab
parentbe7164ee01422c58d941a6d789ac5c4a853e70f6
ceph: file operations

File open and close operations, and read and write methods that ensure
we have obtained the proper capabilities from the MDS cluster before
performing IO on a file.  We take references on held capabilities for
the duration of the read/write to avoid prematurely releasing them
back to the MDS.

We implement two main paths for read and write: one that is buffered
(and uses generic_aio_{read,write}), and one that is fully synchronous
and blocking (operating either on a __user pointer or, if O_DIRECT,
directly on user pages).

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/file.c [new file with mode: 0644]