#include "config.h"
#include "memory.h"
#include "lock.h"
+#include "recover.h"
#ifdef CONFIG_DLM_DEBUG
int dlm_create_debug_file(struct dlm_ls *ls);
return len;
}
+static ssize_t dlm_recover_status_show(struct dlm_ls *ls, char *buf)
+{
+ uint32_t status = dlm_recover_status(ls);
+ return sprintf(buf, "%x\n", status);
+}
+
struct dlm_attr {
struct attribute attr;
ssize_t (*show)(struct dlm_ls *, char *);
.store = dlm_id_store
};
+static struct dlm_attr dlm_attr_recover_status = {
+ .attr = {.name = "recover_status", .mode = S_IRUGO},
+ .show = dlm_recover_status_show
+};
+
static struct attribute *dlm_attrs[] = {
&dlm_attr_control.attr,
&dlm_attr_event.attr,
&dlm_attr_id.attr,
+ &dlm_attr_recover_status.attr,
NULL,
};