Skip to content

Commit

Permalink
ceph: file operations
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sage Weil committed Oct 6, 2009
1 parent 2817b00 commit 124e68e
Showing 1 changed file with 904 additions and 0 deletions.
Loading

0 comments on commit 124e68e

Please sign in to comment.