forked from pool/ocfs2-tools
c8700c5230
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/ocfs2-tools?expand=0&rev=8
88 lines
3.8 KiB
Diff
88 lines
3.8 KiB
Diff
From 76e095ae3d132828bbb70bad68c428101d3652a9 Mon Sep 17 00:00:00 2001
|
|
From: Coly Li <coly.li@suse.de>
|
|
Date: Sun, 11 Apr 2010 00:03:33 +0800
|
|
Subject: [PATCH 15/15] dx_dirs v11: enable metaecc and indexed-dirs support as default features
|
|
|
|
metaecc feature enables ECC checking for meta data, which helps the file
|
|
system consistency. indexed-dirs feature enables indexed tree for
|
|
directories, which improves lookup performance for large scale
|
|
directories.
|
|
|
|
This patch enables metaecc and indexed-dirs support as default features.
|
|
|
|
Signed-off-by: Coly Li <coly.li@suse.de>
|
|
Cc: Mark Fasheh <mfasheh@suse.com>
|
|
---
|
|
libocfs2/feature_string.c | 18 ++++++++++++++----
|
|
mkfs.ocfs2/mkfs.ocfs2.8.in | 2 +-
|
|
2 files changed, 15 insertions(+), 5 deletions(-)
|
|
|
|
diff --git a/libocfs2/feature_string.c b/libocfs2/feature_string.c
|
|
index 0974fb6..b2413bf 100644
|
|
--- a/libocfs2/feature_string.c
|
|
+++ b/libocfs2/feature_string.c
|
|
@@ -76,7 +76,9 @@ static ocfs2_fs_options feature_level_defaults[] = {
|
|
{OCFS2_FEATURE_COMPAT_BACKUP_SB | OCFS2_FEATURE_COMPAT_JBD2_SB,
|
|
OCFS2_FEATURE_INCOMPAT_SPARSE_ALLOC |
|
|
OCFS2_FEATURE_INCOMPAT_INLINE_DATA |
|
|
- OCFS2_FEATURE_INCOMPAT_XATTR,
|
|
+ OCFS2_FEATURE_INCOMPAT_XATTR |
|
|
+ OCFS2_FEATURE_INCOMPAT_META_ECC |
|
|
+ OCFS2_FEATURE_INCOMPAT_INDEXED_DIRS,
|
|
OCFS2_FEATURE_RO_COMPAT_UNWRITTEN}, /* OCFS2_FEATURE_LEVEL_DEFAULT */
|
|
|
|
{OCFS2_FEATURE_COMPAT_BACKUP_SB | OCFS2_FEATURE_COMPAT_JBD2_SB,
|
|
@@ -100,25 +102,33 @@ static ocfs2_fs_options mkfstypes_features_defaults[] = {
|
|
{OCFS2_FEATURE_COMPAT_BACKUP_SB | OCFS2_FEATURE_COMPAT_JBD2_SB,
|
|
OCFS2_FEATURE_INCOMPAT_SPARSE_ALLOC |
|
|
OCFS2_FEATURE_INCOMPAT_INLINE_DATA |
|
|
- OCFS2_FEATURE_INCOMPAT_XATTR,
|
|
+ OCFS2_FEATURE_INCOMPAT_XATTR |
|
|
+ OCFS2_FEATURE_INCOMPAT_META_ECC |
|
|
+ OCFS2_FEATURE_INCOMPAT_INDEXED_DIRS,
|
|
OCFS2_FEATURE_RO_COMPAT_UNWRITTEN}, /* OCFS2_MKFSTYPE_DEFAULT */
|
|
|
|
{OCFS2_FEATURE_COMPAT_BACKUP_SB | OCFS2_FEATURE_COMPAT_JBD2_SB,
|
|
OCFS2_FEATURE_INCOMPAT_SPARSE_ALLOC |
|
|
OCFS2_FEATURE_INCOMPAT_INLINE_DATA |
|
|
- OCFS2_FEATURE_INCOMPAT_XATTR,
|
|
+ OCFS2_FEATURE_INCOMPAT_XATTR |
|
|
+ OCFS2_FEATURE_INCOMPAT_META_ECC |
|
|
+ OCFS2_FEATURE_INCOMPAT_INDEXED_DIRS,
|
|
OCFS2_FEATURE_RO_COMPAT_UNWRITTEN}, /* OCFS2_MKFSTYPE_DATAFILES */
|
|
|
|
{OCFS2_FEATURE_COMPAT_BACKUP_SB | OCFS2_FEATURE_COMPAT_JBD2_SB,
|
|
OCFS2_FEATURE_INCOMPAT_SPARSE_ALLOC |
|
|
OCFS2_FEATURE_INCOMPAT_INLINE_DATA |
|
|
- OCFS2_FEATURE_INCOMPAT_XATTR,
|
|
+ OCFS2_FEATURE_INCOMPAT_XATTR |
|
|
+ OCFS2_FEATURE_INCOMPAT_META_ECC |
|
|
+ OCFS2_FEATURE_INCOMPAT_INDEXED_DIRS,
|
|
OCFS2_FEATURE_RO_COMPAT_UNWRITTEN}, /* OCFS2_MKFSTYPE_MAIL */
|
|
|
|
{OCFS2_FEATURE_COMPAT_BACKUP_SB | OCFS2_FEATURE_COMPAT_JBD2_SB,
|
|
OCFS2_FEATURE_INCOMPAT_SPARSE_ALLOC |
|
|
OCFS2_FEATURE_INCOMPAT_INLINE_DATA |
|
|
OCFS2_FEATURE_INCOMPAT_XATTR |
|
|
+ OCFS2_FEATURE_INCOMPAT_META_ECC |
|
|
+ OCFS2_FEATURE_INCOMPAT_INDEXED_DIRS |
|
|
OCFS2_FEATURE_INCOMPAT_REFCOUNT_TREE,
|
|
OCFS2_FEATURE_RO_COMPAT_UNWRITTEN}, /* OCFS2_MKFSTYPE_VMSTORE */
|
|
};
|
|
diff --git a/mkfs.ocfs2/mkfs.ocfs2.8.in b/mkfs.ocfs2/mkfs.ocfs2.8.in
|
|
index a148133..2fd7a70 100644
|
|
--- a/mkfs.ocfs2/mkfs.ocfs2.8.in
|
|
+++ b/mkfs.ocfs2/mkfs.ocfs2.8.in
|
|
@@ -191,7 +191,7 @@ Chooses fewer features but ensures that the file system can be mounted from olde
|
|
.RS 1.2i
|
|
.TP
|
|
\fBdefault\fR
|
|
-The default feature set tries to strike a balance between providing new features and maintaining compatibility with relatively recent versions of \fIOCFS2\fR. It currently enables \fBsparse\fR, \fBunwritten\fR \fBinline-data\fR and \fBxattr\fR. It also enables \fBrefcount\fR for the \fIvmstore\fR volumes.
|
|
+The default feature set tries to strike a balance between providing new features and maintaining compatibility with relatively recent versions of \fIOCFS2\fR. It currently enables \fBsparse\fR, \fBunwritten\fR, \fBinline-data\fR, \fRxattr\fR, \fRmetaecc\fR, and \fRindexed-dirs\fR. It also enables \fBrefcount\fR for the \fIvmstore\fR volumes.
|
|
.RE
|
|
.RS 1.2i
|
|
.TP
|
|
--
|
|
1.7.0.2
|
|
|