summaryrefslogtreecommitdiffstats
path: root/fs/ceph/ioctl.h
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2010-04-16 18:53:43 +0200
committerSage Weil <sage@newdream.net>2010-08-02 05:11:39 +0200
commit8c6e9229fc1989cf263a6fcd4ff406d7f473f966 (patch)
tree6402204aae50b0590df39289ed1e533472ee6ca1 /fs/ceph/ioctl.h
parentceph: request FILE_LAZYIO cap when LAZY file mode is set (diff)
downloadlinux-8c6e9229fc1989cf263a6fcd4ff406d7f473f966.tar.xz
linux-8c6e9229fc1989cf263a6fcd4ff406d7f473f966.zip
ceph: add LAZYIO ioctl to mark a file description for lazy consistency
Allow an application to mark a file descriptor for lazy file consistency semantics, allowing buffered reads and writes when multiple clients are accessing the same file. Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/ioctl.h')
-rw-r--r--fs/ceph/ioctl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ceph/ioctl.h b/fs/ceph/ioctl.h
index 25e4f1a9d059..88451a3b6857 100644
--- a/fs/ceph/ioctl.h
+++ b/fs/ceph/ioctl.h
@@ -37,4 +37,6 @@ struct ceph_ioctl_dataloc {
#define CEPH_IOC_GET_DATALOC _IOWR(CEPH_IOCTL_MAGIC, 3, \
struct ceph_ioctl_dataloc)
+#define CEPH_IOC_LAZYIO _IO(CEPH_IOCTL_MAGIC, 4)
+
#endif