diff options
author | Joel Becker <joel.becker@oracle.com> | 2010-01-30 13:33:50 +0100 |
---|---|---|
committer | Joel Becker <joel.becker@oracle.com> | 2010-02-27 00:41:18 +0100 |
commit | 0016eedc4185a3cd7e578b027a6e69001b85d6c4 (patch) | |
tree | 4233550efcca539035d8de19e9b5314c3036124b /fs/ocfs2/stackglue.c | |
parent | ocfs2_dlmfs: Don't honor truncate. The size of a dlmfs file is LVB_LEN (diff) | |
download | linux-0016eedc4185a3cd7e578b027a6e69001b85d6c4.tar.xz linux-0016eedc4185a3cd7e578b027a6e69001b85d6c4.zip |
ocfs2_dlmfs: Use the stackglue.
Rather than directly using o2dlm, dlmfs can now use the stackglue. This
allows it to use userspace cluster stacks and fs/dlm. This commit
forces o2cb for now. A latter commit will bump the protocol version and
allow non-o2cb stacks.
This is one big sed, really. LKM_xxMODE becomes DLM_LOCK_xx. LKM_flag
becomes DLM_LKF_flag.
We also learn to check that the LVB is valid before reading it. Any DLM
can lose the contents of the LVB during a complicated recovery. userdlm
should be checking this. Now it does. dlmfs will return 0 from read(2)
if the LVB was invalid.
Signed-off-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'fs/ocfs2/stackglue.c')
0 files changed, 0 insertions, 0 deletions