Skip to content

Commit 124e68e

Browse files
committed
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>
1 parent 2817b00 commit 124e68e

1 file changed

Lines changed: 904 additions & 0 deletions

File tree

0 commit comments

Comments
 (0)