ocfs2: Add an incompat feature flag OCFS2_FEATURE_INCOMPAT_CLUSTERINFO
authorSunil Mushran <sunil.mushran@oracle.com>
Sat, 9 Oct 2010 17:24:46 +0000 (10:24 -0700)
committerSunil Mushran <sunil.mushran@oracle.com>
Sat, 9 Oct 2010 17:24:46 +0000 (10:24 -0700)
commit98f486f23bc5b6a6fa90e1a0707b7e9fe0e7f3e4
tree3998ce4a9c8871299934f7b1b305867ea9d4ac40
parent54b5187b5a1ad6573ade8b18e065dda92501fc52
ocfs2: Add an incompat feature flag OCFS2_FEATURE_INCOMPAT_CLUSTERINFO

OCFS2_FEATURE_INCOMPAT_CLUSTERINFO allows us to use sb->s_cluster_info for
both userspace and o2cb cluster stacks. It also allows us to extend cluster
info to include stack flags.

This patch also adds stackflags to sb->s_clusterinfo. It also introduces a
clusterinfo flag OCFS2_CLUSTER_O2CB_GLOBAL_HEARTBEAT to denote the enabled
global heartbeat mode.

This incompat flag can be set/cleared using tunefs.ocfs2 --fs-features. The
clusterinfo flag is set/cleared using tunefs.ocfs2 --update-cluster-stack.

Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
fs/ocfs2/ocfs2.h
fs/ocfs2/ocfs2_fs.h
fs/ocfs2/super.c