From faf2dc171c069124b8a78cfe2fe8ba0e87f47ddb Mon Sep 17 00:00:00 2001 From: Eric Sandeen Date: Tue, 16 Jun 2009 15:59:31 +0000 Subject: [PATCH] * Mon Jun 15 2009 Eric Sandeen 3.0.1-6 - Make lazy superblock counters the default --- xfsprogs-3.0.1-mkfs-lazy-count-default.patch | 33 ++++++++++++++++++++ xfsprogs.spec | 9 +++++- 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 xfsprogs-3.0.1-mkfs-lazy-count-default.patch diff --git a/xfsprogs-3.0.1-mkfs-lazy-count-default.patch b/xfsprogs-3.0.1-mkfs-lazy-count-default.patch new file mode 100644 index 0000000..297193d --- /dev/null +++ b/xfsprogs-3.0.1-mkfs-lazy-count-default.patch @@ -0,0 +1,33 @@ +Not yet upstream but planned to be so. + +Index: xfsprogs-2.10.2/mkfs/xfs_mkfs.c +=================================================================== +--- xfsprogs-2.10.2.orig/mkfs/xfs_mkfs.c ++++ xfsprogs-2.10.2/mkfs/xfs_mkfs.c +@@ -733,7 +733,7 @@ main( + nodsflag = norsflag = 0; + force_overwrite = 0; + worst_freelist = 0; +- lazy_sb_counters = 0; ++ lazy_sb_counters = 1; + memset(&fsx, 0, sizeof(fsx)); + + memset(&xi, 0, sizeof(xi)); +Index: xfsprogs-2.10.2/man/man8/mkfs.xfs.8 +=================================================================== +--- xfsprogs-2.10.2.orig/man/man8/mkfs.xfs.8 ++++ xfsprogs-2.10.2/man/man8/mkfs.xfs.8 +@@ -455,9 +455,10 @@ counter values without needed to keep th + This gives significant improvements in performance on some configurations. + The default + .I value +-is 0 (off) so you must specify +-.B lazy-count=1 +-if you want to make use of this feature. ++is 1 (on) so you must specify ++.B lazy-count=0 ++if you want to disable this feature for older kernels which don't support ++it. + .RE + .TP + .BI \-n " naming_options" diff --git a/xfsprogs.spec b/xfsprogs.spec index ce2167c..9f6c081 100644 --- a/xfsprogs.spec +++ b/xfsprogs.spec @@ -1,7 +1,7 @@ Summary: Utilities for managing the XFS filesystem Name: xfsprogs Version: 3.0.1 -Release: 5%{?dist} +Release: 6%{?dist} # Licensing based on generic "GNU GENERAL PUBLIC LICENSE" # in source, with no mention of version. # doc/COPYING file specifies what is GPL and what is LGPL @@ -17,8 +17,11 @@ Provides: xfs-cmds Obsoletes: xfs-cmds <= %{version} Conflicts: xfsdump < 3.0.1 +# These are upstream Patch0: xfsprogs-3.0.1-readline.patch Patch1: xfsprogs-3.0.1-fallocate.patch +# This one, not yet +Patch2: xfsprogs-3.0.1-mkfs-lazy-count-default.patch %description A set of commands to use the XFS filesystem, including mkfs.xfs. @@ -65,6 +68,7 @@ in building or running the xfstests QA suite. %patch0 -p1 %patch1 -p1 +%patch2 -p1 %build export tagname=CC DEBUG=-DNDEBUG @@ -191,6 +195,9 @@ rm -rf $RPM_BUILD_ROOT %{_includedir}/xfs/xfs_types.h %changelog +* Mon Jun 15 2009 Eric Sandeen 3.0.1-6 +- Make lazy superblock counters the default + * Mon Jun 15 2009 Eric Sandeen 3.0.1-5 - Add fallocate command to config script & fix for 32-bit