projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea20344
)
ocfs2: Print message if user mounts without starting global heartbeat
author
Sunil Mushran
<sunil.mushran@oracle.com>
Thu, 7 Oct 2010 00:55:29 +0000
(17:55 -0700)
committer
Sunil Mushran
<sunil.mushran@oracle.com>
Thu, 7 Oct 2010 00:55:29 +0000
(17:55 -0700)
In global heartbeat mode, the heartbeat is started by the user. This patch
prints an error if the user attempts to mount a volume without starting the
heartbeat.
Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
fs/ocfs2/stack_o2cb.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ocfs2/stack_o2cb.c
b/fs/ocfs2/stack_o2cb.c
index 0d3049f696c5418448173ed3538020bd5d51b9d0..19965b00c43caee7df4e09428775a55150ba9f8c 100644
(file)
--- a/
fs/ocfs2/stack_o2cb.c
+++ b/
fs/ocfs2/stack_o2cb.c
@@
-283,6
+283,8
@@
static int o2cb_cluster_connect(struct ocfs2_cluster_connection *conn)
/* for now we only have one cluster/node, make sure we see it
* in the heartbeat universe */
if (!o2hb_check_local_node_heartbeating()) {
+ if (o2hb_global_heartbeat_active())
+ mlog(ML_ERROR, "Global heartbeat not started\n");
rc = -EINVAL;
goto out;
}