diff options
author | Greg Farnum <gregf@hq.newdream.net> | 2010-08-02 18:34:23 -0400 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-08-02 19:10:53 -0400 |
commit | 40819f6fb227c1832935b775ac22aef10aa6f6dd (patch) | |
tree | 14f3e73f9585cc157ab2daab487c7b3964394fe2 /fs/ceph/file.c | |
parent | fbaad9797a761c2d5ff6e755bbb4c046207a1ca2 (diff) |
ceph: add flock/fcntl lock support
Implement flock inode operation to support advisory file locking. All
lock/unlock operations are synchronous with the MDS. Lock state is
sent when reconnecting to a recovering MDS to restore the shared lock
state.
Signed-off-by: Greg Farnum <gregf@hq.newdream.net>
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/file.c')
-rw-r--r-- | fs/ceph/file.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ceph/file.c b/fs/ceph/file.c index 5fe50ffa2deb..e850e63f9563 100644 --- a/fs/ceph/file.c +++ b/fs/ceph/file.c | |||
@@ -938,6 +938,8 @@ const struct file_operations ceph_file_fops = { | |||
938 | .aio_write = ceph_aio_write, | 938 | .aio_write = ceph_aio_write, |
939 | .mmap = ceph_mmap, | 939 | .mmap = ceph_mmap, |
940 | .fsync = ceph_fsync, | 940 | .fsync = ceph_fsync, |
941 | .lock = ceph_lock, | ||
942 | .flock = ceph_flock, | ||
941 | .splice_read = generic_file_splice_read, | 943 | .splice_read = generic_file_splice_read, |
942 | .splice_write = generic_file_splice_write, | 944 | .splice_write = generic_file_splice_write, |
943 | .unlocked_ioctl = ceph_ioctl, | 945 | .unlocked_ioctl = ceph_ioctl, |