diff options
author | Sage Weil <sage@newdream.net> | 2011-07-26 11:26:07 -0700 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2011-07-26 11:26:07 -0700 |
commit | 4918b6d140c4822201ebbe2f070875332aff337b (patch) | |
tree | 0327a0a68acd2f8209893b4770ba3c9d9264041c /fs/ceph/ioctl.h | |
parent | 252c6728de604d6a897d85e212996811d5c8c46c (diff) | |
download | linux-stable-4918b6d140c4822201ebbe2f070875332aff337b.tar.gz linux-stable-4918b6d140c4822201ebbe2f070875332aff337b.tar.bz2 linux-stable-4918b6d140c4822201ebbe2f070875332aff337b.zip |
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>
Diffstat (limited to 'fs/ceph/ioctl.h')
-rw-r--r-- | fs/ceph/ioctl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ceph/ioctl.h b/fs/ceph/ioctl.h index 52e8fd74d450..0c5167e43180 100644 --- a/fs/ceph/ioctl.h +++ b/fs/ceph/ioctl.h @@ -40,5 +40,6 @@ struct ceph_ioctl_dataloc { struct ceph_ioctl_dataloc) #define CEPH_IOC_LAZYIO _IO(CEPH_IOCTL_MAGIC, 4) +#define CEPH_IOC_SYNCIO _IO(CEPH_IOCTL_MAGIC, 5) #endif |