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)
commit4918b6d140c4822201ebbe2f070875332aff337b
tree0327a0a68acd2f8209893b4770ba3c9d9264041c
parent252c6728de604d6a897d85e212996811d5c8c46c
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