File 0001-Revert-mkfs-default-to-CRC-enabled-filesystems.patch of Package xfsprogs.6453
From fff752ddad9b3584eeb59ac284b15583a0a419ff Mon Sep 17 00:00:00 2001
From: Mark Fasheh <mfasheh@suse.de>
Date: Thu, 18 Feb 2016 20:48:16 -0800
Subject: [PATCH] Revert "mkfs: default to CRC enabled filesystems"
This reverts the manpage and default-setting portions of commit
566ebd5ae5fa4267c1789e72bc309207627220eb.
Conflicts:
man/man8/mkfs.xfs.8
mkfs/xfs_mkfs.c
Signed-off-by: Mark Fasheh <mfasheh@suse.de>
---
man/man8/mkfs.xfs.8 | 5 +++--
mkfs/xfs_mkfs.c | 4 ++--
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/man/man8/mkfs.xfs.8 b/man/man8/mkfs.xfs.8
index 1fe510b..580fb58 100644
--- a/man/man8/mkfs.xfs.8
+++ b/man/man8/mkfs.xfs.8
@@ -150,7 +150,7 @@ of calculating and checking the CRCs is not noticeable in normal operation.
.IP
By default,
.B mkfs.xfs
-will enable metadata CRCs.
+will not enable metadata CRCs.
.TP
.BI finobt= value
This option enables the use of a separate free inode btree index in each
@@ -164,7 +164,8 @@ filesystems age.
.IP
By default,
.B mkfs.xfs
-will create free inode btrees for filesystems created with the (default)
+will not create free inode btrees. This feature is also currently only available
+for filesystems created with the
.B \-m crc=1
option set. When the option
.B \-m crc=0
diff --git a/mkfs/xfs_mkfs.c b/mkfs/xfs_mkfs.c
index 7cba41a..7bdb5bc 100644
--- a/mkfs/xfs_mkfs.c
+++ b/mkfs/xfs_mkfs.c
@@ -1018,8 +1018,8 @@ main(
force_overwrite = 0;
worst_freelist = 0;
lazy_sb_counters = 1;
- crcs_enabled = 1;
- finobt = 1;
+ crcs_enabled = 0;
+ finobt = 0;
finobtflag = false;
spinodes = 0;
memset(&fsx, 0, sizeof(fsx));
--
2.1.4