From: Goldwyn Rodrigues <rgold...@suse.de>

Signed-off-by: Goldwyn Rodrigues <rgold...@suse.com>
Signed-off-by: Mark Fasheh <mfas...@suse.de>
---
 mkfs.ocfs2/check.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/mkfs.ocfs2/check.c b/mkfs.ocfs2/check.c
index f05dc72..79583bf 100644
--- a/mkfs.ocfs2/check.c
+++ b/mkfs.ocfs2/check.c
@@ -339,6 +339,15 @@ int ocfs2_check_volume(State *s)
                goto nolock;
 
        if (!s->force) {
+               if (s->cluster_stack) {
+                       ret = o2cb_setup_stack(s->cluster_stack);
+                       if (ret) {
+                               com_err(s->progname, ret,
+                                       "while setting up stack\n");
+                               return -1;
+                       }
+               }
+
                ret = o2cb_init();
                if (ret) {
                        com_err(s->progname, ret,
-- 
2.1.2


_______________________________________________
Ocfs2-devel mailing list
Ocfs2-devel@oss.oracle.com
https://oss.oracle.com/mailman/listinfo/ocfs2-devel

Reply via email to