-
- Downloads
ocfs2: POSIX file locks support
This is actually pretty easy since fs/dlm already handles the bulk of the
work. The Ocfs2 userspace cluster stack module already uses fs/dlm as the
underlying lock manager, so I only had to add the right calls.
Cluster-aware POSIX locks ("plocks") can be turned off by the same means at
UNIX locks - mount with 'noflocks', or create a local-only Ocfs2 volume.
Internally, the file system uses two sets of file_operations, depending on
whether cluster aware plocks is required. This turns out to be easier than
implementing local-only versions of ->lock.
Signed-off-by:
Mark Fasheh <mfasheh@suse.com>
Showing
- fs/ocfs2/file.c 51 additions, 0 deletionsfs/ocfs2/file.c
- fs/ocfs2/file.h 2 additions, 0 deletionsfs/ocfs2/file.h
- fs/ocfs2/inode.c 13 additions, 2 deletionsfs/ocfs2/inode.c
- fs/ocfs2/locks.c 15 additions, 0 deletionsfs/ocfs2/locks.c
- fs/ocfs2/locks.h 1 addition, 0 deletionsfs/ocfs2/locks.h
- fs/ocfs2/stack_user.c 33 additions, 0 deletionsfs/ocfs2/stack_user.c
- fs/ocfs2/stackglue.c 20 additions, 0 deletionsfs/ocfs2/stackglue.c
- fs/ocfs2/stackglue.h 19 additions, 0 deletionsfs/ocfs2/stackglue.h
Loading
Please register or sign in to comment