diff options
Diffstat (limited to 'fs/ocfs2/stackglue.c')
-rw-r--r-- | fs/ocfs2/stackglue.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/fs/ocfs2/stackglue.c b/fs/ocfs2/stackglue.c index ca5ce14cbddc..5c8343fe7438 100644 --- a/fs/ocfs2/stackglue.c +++ b/fs/ocfs2/stackglue.c | |||
@@ -603,11 +603,25 @@ static struct kobj_attribute ocfs2_attr_cluster_stack = | |||
603 | ocfs2_cluster_stack_show, | 603 | ocfs2_cluster_stack_show, |
604 | ocfs2_cluster_stack_store); | 604 | ocfs2_cluster_stack_store); |
605 | 605 | ||
606 | |||
607 | |||
608 | static ssize_t ocfs2_dlm_recover_show(struct kobject *kobj, | ||
609 | struct kobj_attribute *attr, | ||
610 | char *buf) | ||
611 | { | ||
612 | return snprintf(buf, PAGE_SIZE, "1\n"); | ||
613 | } | ||
614 | |||
615 | static struct kobj_attribute ocfs2_attr_dlm_recover_support = | ||
616 | __ATTR(dlm_recover_callback_support, S_IRUGO, | ||
617 | ocfs2_dlm_recover_show, NULL); | ||
618 | |||
606 | static struct attribute *ocfs2_attrs[] = { | 619 | static struct attribute *ocfs2_attrs[] = { |
607 | &ocfs2_attr_max_locking_protocol.attr, | 620 | &ocfs2_attr_max_locking_protocol.attr, |
608 | &ocfs2_attr_loaded_cluster_plugins.attr, | 621 | &ocfs2_attr_loaded_cluster_plugins.attr, |
609 | &ocfs2_attr_active_cluster_plugin.attr, | 622 | &ocfs2_attr_active_cluster_plugin.attr, |
610 | &ocfs2_attr_cluster_stack.attr, | 623 | &ocfs2_attr_cluster_stack.attr, |
624 | &ocfs2_attr_dlm_recover_support.attr, | ||
611 | NULL, | 625 | NULL, |
612 | }; | 626 | }; |
613 | 627 | ||