diff mbox

[4/6] mkfs: Setup cluster_stack if not setup based on args

Message ID 1422483128-32471-5-git-send-email-mfasheh@suse.de (mailing list archive)
State New, archived
Headers show

Commit Message

Mark Fasheh Jan. 28, 2015, 10:12 p.m. UTC
From: Goldwyn Rodrigues <rgoldwyn@suse.de>

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

Patch

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,