GFS: lock_dlm module
Subsystems (2)
PATCH 13/13 GFS: lock_dlm module
The lock_dlm module uses the DLM in linux/drivers/dlm/ for inter-node locking.
Signed-off-by Ken Preslan <[email protected]>
Signed-off-by David Teigland <[email protected]>
---
fs/gfs2/locking/dlm/Makefile | 3 fs/gfs2/locking/dlm/lock.c | 533 +++++++++++++++++++++++++++++++++++++++++ fs/gfs2/locking/dlm/lock_dlm.h | 200 +++++++++++++++ fs/gfs2/locking/dlm/main.c | 62 ++++ fs/gfs2/locking/dlm/mount.c | 218 ++++++++++++++++ fs/gfs2/locking/dlm/plock.c | 274 +++++++++++++++++++++ fs/gfs2/locking/dlm/sysfs.c | 283 +++++++++++++++++++++ fs/gfs2/locking/dlm/thread.c | 355 +++++++++++++++++++++++++++ include/linux/lock_dlm_plock.h | 40 +++ 9 files changed, 1968 insertions(+)
fs/gfs2/locking/dlm/Makefile +3 -0
@@ -0,0 +1,3 @@ +obj-$(CONFIG_GFS2_FS) += lock_dlm.o +lock_dlm-y := lock.o main.o mount.o sysfs.o thread.o plock.o +
fs/gfs2/locking/dlm/lock.c +533 -0
533 lines not on this page · raw message
fs/gfs2/locking/dlm/lock_dlm.h +200 -0
200 lines not on this page · raw message
fs/gfs2/locking/dlm/main.c +62 -0
62 lines not on this page · raw message
fs/gfs2/locking/dlm/mount.c +218 -0
218 lines not on this page · raw message
fs/gfs2/locking/dlm/plock.c +274 -0
274 lines not on this page · raw message
fs/gfs2/locking/dlm/sysfs.c +283 -0
283 lines not on this page · raw message
fs/gfs2/locking/dlm/thread.c +355 -0
355 lines not on this page · raw message
include/linux/lock_dlm_plock.h +40 -0
@@ -0,0 +1,40 @@ +/* +* Copyright (C) 2005 Red Hat, Inc. All rights reserved. +* +* This copyrighted material is made available to anyone wishing to use, +* modify, copy, or redistribute it subject to the terms and conditions +* of the GNU General Public License v.2. +*/ + +#ifndef __LOCK_DLM_PLOCK_DOT_H__ +#define __LOCK_DLM_PLOCK_DOT_H__ + +#define GDLM_PLOCK_MISC_NAME "lock_dlm_plock" + +#define GDLM_PLOCK_VERSION_MAJOR 1 +#define GDLM_PLOCK_VERSION_MINOR 0 +#define GDLM_PLOCK_VERSION_PATCH 0 + +enum { +GDLM_PLOCK_OP_LOCK =1 , +GDLM_PLOCK_OP_UNLOCK , +GDLM_PLOCK_OP_GET , +}; + +struct gdlm_plock_info { +__u32 version[3 ]; +__u8 optype; +__u8 ex; +__u8 wait; +__u8 pad; +__u32 pid; +__s32 nodeid; +__s32 rv; +__u32 fsid; +__u64 number; +__u64 start; +__u64 end; +}; + +#endif +