aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/super.c
diff options
context:
space:
mode:
authorTiger Yang <tiger.yang@oracle.com>2008-08-18 05:11:46 -0400
committerMark Fasheh <mfasheh@suse.com>2008-10-13 19:57:03 -0400
commit8154da3d2114241cf3edb108b43e2172be86d483 (patch)
treea6d1c1652469d9a34b50dbdab4a435376bf3f32c /fs/ocfs2/super.c
parenta394425643e1e9c3a624d629fc8ba5633d8474c6 (diff)
ocfs2: Add incompatible flag for extended attribute
This patch adds the s_incompat flag for extended attribute support. This helps us ensure that older versions of Ocfs2 or ocfs2-tools will not be able to mount a volume with xattr support. Signed-off-by: Tiger Yang <tiger.yang@oracle.com> Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs/ocfs2/super.c')
-rw-r--r--fs/ocfs2/super.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c
index 3b04f5d2e89..c85e525950a 100644
--- a/fs/ocfs2/super.c
+++ b/fs/ocfs2/super.c
@@ -1437,7 +1437,8 @@ static int ocfs2_initialize_super(struct super_block *sb,
1437 1437
1438 osb->slot_num = OCFS2_INVALID_SLOT; 1438 osb->slot_num = OCFS2_INVALID_SLOT;
1439 1439
1440 osb->s_xattr_inline_size = OCFS2_MIN_XATTR_INLINE_SIZE; 1440 osb->s_xattr_inline_size = le16_to_cpu(
1441 di->id2.i_super.s_xattr_inline_size);
1441 1442
1442 osb->local_alloc_state = OCFS2_LA_UNUSED; 1443 osb->local_alloc_state = OCFS2_LA_UNUSED;
1443 osb->local_alloc_bh = NULL; 1444 osb->local_alloc_bh = NULL;