ocfs2: add dlm_recover_callback_support in sysfs
authorGoldwyn Rodrigues <[email protected]>
Thu, 3 Apr 2014 21:46:52 +0000 (14:46 -0700)
committerLinus Torvalds <[email protected]>
Thu, 3 Apr 2014 23:20:54 +0000 (16:20 -0700)
commit765aabbbc72923bdb9116e49b1fc27ef22c6e65a
treec3e3e37740c603e618cf01ff9979c5aa97e17bda
parentded2cf71419b9353060e633b59e446c42a6a2a09
ocfs2: add dlm_recover_callback_support in sysfs

This is a part of the nocontrold feature which was incorporated sometime
back.

This is required for backward compatibility of the tools, specifically
the scenario where the tools with recovery callback is used with a
kernel not using the recovery callbacks (older kernel + newer tools).
The tools look for this file to understand if the kernel supports DLM
recovery callbacks.

For kernels which support recovery callbacks but will miss this patch,
ocfs2 will continue to use the older API and would still be able to
mount the filesystem.

[[email protected]: simplify]
[[email protected]: VERIFY_OCTAL_PERMISSIONS fix up]
Signed-off-by: Goldwyn Rodrigues <[email protected]>
Cc: Mark Fasheh <[email protected]>
Cc: Joel Becker <[email protected]>
Signed-off-by: Stephen Rothwell <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/ocfs2/stackglue.c