ceph: file operations
authorSage Weil <sage@newdream.net>
Tue, 6 Oct 2009 18:31:08 +0000 (11:31 -0700)
committerSage Weil <sage@newdream.net>
Tue, 6 Oct 2009 18:31:08 +0000 (11:31 -0700)
commit124e68e74099090e28da5518f73fda878e7e8232
tree392c4861271b7c5ea1049832828c42a4c6ec9916
parent2817b000b02c5f0c05af67c01fb2684e1381d6ef
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]
This page took 0.024243 seconds and 5 git commands to generate.