]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: add F_SYNC file flag to force sync (non-O_DIRECT) io
authorSage Weil <sage@newdream.net>
Tue, 26 Jul 2011 18:26:07 +0000 (11:26 -0700)
committerSage Weil <sage@newdream.net>
Tue, 26 Jul 2011 18:26:07 +0000 (11:26 -0700)
commitb66d25e1f5c3c7b006161c1a499ec016f9729eb5
tree0327a0a68acd2f8209893b4770ba3c9d9264041c
parentd9adb4d3f107f2281bf7913def07e7a41546da53
ceph: add F_SYNC file flag to force sync (non-O_DIRECT) io

This allows us to force IO through the sync path which you normally only
get when multiple clients are reading/writing to the same file or by
mounting with -o sync.  Among other things, this lets test programs verify
correctness with a single mount.

Reviewed-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/file.c
fs/ceph/ioctl.c
fs/ceph/ioctl.h
fs/ceph/super.h