From 58af0d47c7d9ee493e7ff6bc3e5b2e51d52573b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Wed, 12 Jun 2024 17:07:40 +0200 Subject: [PATCH] Sync from SUSE:ALP:Source:Standard:1.0 bonnie revision 24543d58653dad756d27171ff3542e3c --- .gitattributes | 23 +++++++ bonnie-1.6.tar.bz2 | 3 + bonnie-fix-o_direct.diff | 27 ++++++++ bonnie.changes | 138 +++++++++++++++++++++++++++++++++++++++ bonnie.spec | 47 +++++++++++++ 5 files changed, 238 insertions(+) create mode 100644 .gitattributes create mode 100644 bonnie-1.6.tar.bz2 create mode 100644 bonnie-fix-o_direct.diff create mode 100644 bonnie.changes create mode 100644 bonnie.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/bonnie-1.6.tar.bz2 b/bonnie-1.6.tar.bz2 new file mode 100644 index 0000000..ab77b0c --- /dev/null +++ b/bonnie-1.6.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e44b0c44c7e80b57bfb29ff32815dfa76d11a18ca1d1dfa9887e754ba0fd1b87 +size 20239 diff --git a/bonnie-fix-o_direct.diff b/bonnie-fix-o_direct.diff new file mode 100644 index 0000000..e349aaf --- /dev/null +++ b/bonnie-fix-o_direct.diff @@ -0,0 +1,27 @@ +? bonnie2 +Index: Bonnie.c +=================================================================== +RCS file: /share/MD0_DATA/cvsroot/C/bonnie/Bonnie.c,v +retrieving revision 1.5 +retrieving revision 1.6 +diff -u -p -r1.5 -r1.6 +--- Bonnie.c 17 Feb 2016 13:09:47 -0000 1.5 ++++ Bonnie.c 23 Nov 2018 09:45:08 -0000 1.6 +@@ -64,7 +64,7 @@ + * or consequential damage, loss, costs or fees or expenses of any + * nature or kind. + */ +-/* $Id: Bonnie.c,v 1.5 2016/02/17 13:09:47 garloff Exp $ */ ++/* $Id: Bonnie.c,v 1.6 2018/11/23 09:45:08 garloff Exp $ */ + + #include + #include +@@ -449,7 +449,7 @@ int main( + + /* read them all back with getc() */ + for(volcnt = 0; volcnt < volumes; volcnt++) +- newfile(name, &fd[volcnt], &stream[volcnt], 0, volcnt, o_direct); ++ newfile(name, &fd[volcnt], &stream[volcnt], 0, volcnt, 0/*+o_direct*/); + for (words = 0; words < 256; words++) + chars[words] = 0; + off_t gsz = size/8; diff --git a/bonnie.changes b/bonnie.changes new file mode 100644 index 0000000..0e74f11 --- /dev/null +++ b/bonnie.changes @@ -0,0 +1,138 @@ +------------------------------------------------------------------- +Tue Nov 5 08:10:10 UTC 2019 - Martin Pluskal + +- Do not use download url anymore + +------------------------------------------------------------------- +Thu Oct 17 14:50:53 UTC 2019 - Richard Brown + +- Remove obsolete Groups tag (fate#326485) + +------------------------------------------------------------------- +Fri Jan 11 11:17:49 CET 2019 - kurt@garloff.de + +- bonnie-fix-o_direct.diff: Don't use O_DIRECT for character input, + as newer kernels don't allow this. + +------------------------------------------------------------------- +Fri Jan 11 11:17:02 CET 2019 - kurt@garloff.de + +- Update to bonnie-1.6: + * Use 16 threads by default + * Smaller 4k reads (seeking) + * Larger blocks in intelligent read/write + * Smaller I/O size for char in/out + * More digits for formatting. + +------------------------------------------------------------------- +Thu Jun 30 13:21:33 UTC 2016 - mpluskal@suse.com + +- Use url for source +- Tiny spec file cleanups + +------------------------------------------------------------------- +Thu Apr 9 10:56:17 UTC 2015 - mpluskal@suse.com + +- Cleanup spec file with spec-cleaner +- Remove ctcs packages + +------------------------------------------------------------------- +Thu Mar 1 16:48:56 CET 2012 - jeffm@suse.de + +- Update to 1.5: Minor changes. + +------------------------------------------------------------------- +Wed Sep 21 07:10:59 UTC 2011 - coolo@suse.com + +- disable ctcs for > 11.4, not available + +------------------------------------------------------------------- +Sat Sep 17 20:27:30 UTC 2011 - jengelh@medozas.de + +- Remove redundant tags/sections from specfile +- Use %_smp_mflags for parallel build + +------------------------------------------------------------------- +Sun Aug 30 15:29:18 UTC 2009 - aj@suse.de + +- Fix last change. + +------------------------------------------------------------------- +Wed Aug 26 12:53:54 CEST 2009 - mls@suse.de + +- make patch0 usage consistent + +------------------------------------------------------------------- +Fri Sep 26 18:31:00 CEST 2008 - vmarsik@suse.cz + +- added subpackage for CTCS2 integration + +------------------------------------------------------------------- +Sat Apr 26 07:18:49 CEST 2008 - coolo@suse.de + +- remove unused header file + +------------------------------------------------------------------- +Mon May 22 17:21:45 CEST 2006 - schwab@suse.de + +- Don't build as root. +- Don't strip binaries. + +------------------------------------------------------------------- +Fri May 19 15:27:05 CEST 2006 - ro@suse.de + +- fix build on ppc64 (define PAGE_MASK if not done) + +------------------------------------------------------------------- +Wed Jan 25 21:34:43 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Thu Apr 4 15:16:23 MEST 2002 - garloff@suse.de + +- Version-1.4: + * Fix seek benchmark: 1.3 read too large chunks (1MB instead + of 16k) after every seek, resulting in too low seek numbers. + bug #15642 + +------------------------------------------------------------------- +Sat Feb 23 23:20:39 CET 2002 - garloff@suse.de + +- Compile fix for archs not supporting O_DIRECT (typo) +- Use O_DIRECT from fcntl.h if present. + +------------------------------------------------------------------- +Wed Feb 20 19:31:46 MET 2002 - garloff@suse.de + +- Update to bonnie-1.3: + * Fixed HTML output (thanks to Rupert Kolb for notfying/patch) + * Optionally use O_DIRECT (patch by Chris Mason / Andrea Arc.) + +------------------------------------------------------------------- +Wed Aug 30 19:35:37 CEST 2000 - garloff@suse.de + +- Update to 1.2: + * New option -u for getc_/putc_unlocked. + * Fixed CPU percentage reports if equal or in excess of 100%. + * Machine name defaults to hostname now. +- Use BuildRoot. + +------------------------------------------------------------------- +Sun Feb 13 23:31:57 CET 2000 - garloff@suse.de + +- Moved manpage to /usr/share/man +- new options -y, -S, -p +- Add warning if test-size smaller memsize + +------------------------------------------------------------------- +Mon Sep 13 17:23:57 CEST 1999 - bs@suse.de + +- ran old prepare_spec on spec file to switch to new prepare_spec. + +------------------------------------------------------------------- +Tue Jul 20 16:48:46 CEST 1999 - garloff@suse.de + +- Initial check in of Big Bonnie. +- Added breakhandler to remove temporary files. + diff --git a/bonnie.spec b/bonnie.spec new file mode 100644 index 0000000..a0709df --- /dev/null +++ b/bonnie.spec @@ -0,0 +1,47 @@ +# +# spec file for package bonnie +# +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: bonnie +Version: 1.6 +Release: 0 +Summary: File System Benchmark +License: GPL-2.0-or-later +URL: https://code.google.com/p/bonnie-64/ +Source0: %{name}-%{version}.tar.bz2 +Patch0: bonnie-fix-o_direct.diff + +%description +Bonnie is a popular performance benchmark that targets various aspects +of Unix file systems. + +%prep +%setup -q -n %{name} +%patch0 + +%build +make SYSFLAGS="%{optflags}" %{?_smp_mflags} + +%install +%make_install + +%files +%doc bonnie.doc README +%{_bindir}/bonnie +%{_mandir}/man1/bonnie.1%{?ext_man} + +%changelog