From nobody@FreeBSD.org  Sun Jan 27 13:34:12 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115])
	by hub.freebsd.org (Postfix) with ESMTP id C38685CC
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 27 Jan 2013 13:34:12 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id AF8C075
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 27 Jan 2013 13:34:12 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r0RDYC8p060640
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 27 Jan 2013 13:34:12 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id r0RDYCeW060639;
	Sun, 27 Jan 2013 13:34:12 GMT
	(envelope-from nobody)
Message-Id: <201301271334.r0RDYCeW060639@red.freebsd.org>
Date: Sun, 27 Jan 2013 13:34:12 GMT
From: Vasiliy Chashchin <blttll@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: New port: benchmarks/iorate A general purpose storage I/O benchmarking tool
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         175630
>Category:       ports
>Synopsis:       New port: benchmarks/iorate A general purpose storage I/O benchmarking tool
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    danfe
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 27 13:40:00 UTC 2013
>Closed-Date:    Sat Jun 15 17:23:36 UTC 2013
>Last-Modified:  Sat Jun 15 17:30:00 UTC 2013
>Originator:     Vasiliy Chashchin
>Release:        FreeBSD 9.1-RELEASE amd64
>Organization:
>Environment:
FreeBSD freebsd 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
Iorate is a general purpose storage I/O benchmarking tool.

Iorate was created in 1997 by Vince Westin of EMC while working with Cliff
Burrell of FedEx to fill a need to perform a set of storage I/O benchmarks.
Though Iorate was developed by EMC staff with EMC resources there are no
EMC-specific pieces to the testing, it just tests storage.

Iorate is freely available for public use.

Author: Iorate was created in 1997 by Vince Westin of EMC
WWW: http://iorate.org/
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	iorate
#	iorate/Makefile
#	iorate/pkg-descr
#	iorate/distinfo
#	iorate/files
#	iorate/files/patch-ior_mach.c
#	iorate/files/patch-ior_mach.h
#	iorate/files/patch-makefile
#
echo c - iorate
mkdir -p iorate > /dev/null 2>&1
echo x - iorate/Makefile
sed 's/^X//' >iorate/Makefile << 'a8fdcb72a588e1b736765129672042d0'
X# $FreeBSD$
X
XPORTNAME=	iorate
XPORTVERSION=	3.05
XCATEGORIES=	benchmarks
XMASTER_SITES=	http://sites.google.com/site/vwiorate/downloads/3-05/
XDISTNAME=	iorate-3.05-src
XEXTRACT_SUFX=	.tar
X
XMAINTAINER=	blttll@gmail.com
XCOMMENT=	A general purpose storage I/O benchmarking tool
X
XMAN1=		iorate.1
XFETCH_ARGS=	-Fpr
XNO_WRKSUBDIR=	yes
XMAKEFILE=	makefile
XMAKE_ENV+=	PREFIX="${PREFIX}"
XMAKE_ENV+=	DOCSDIR="${DOCSDIR}"
XMAKE_ENV+=	MANPREFIX="${MANPREFIX}"
XPLIST_FILES=	bin/ior_rand \
X		bin/iorate \
X		share/doc/iorate/README \
X		share/doc/iorate/README.versions \
X		share/doc/iorate/cycle \
X		share/doc/iorate/run_test \
X		share/doc/iorate/run_var \
X		share/doc/iorate/run_ast \
X		share/doc/iorate/gen_dev.awk \
X		share/doc/iorate/gen_devs \
X		share/doc/iorate/gen_iops \
X		share/doc/iorate/gen_iops.awk \
X		share/doc/iorate/gen_stats \
X		share/doc/iorate/gen_stats.awk \
X		share/doc/iorate/gen_sum.awk \
X		share/doc/iorate/gen_sums \
X		share/doc/iorate/gen_totals \
X		share/doc/iorate/gen_totals.awk \
X		share/doc/iorate/devices.ior \
X		share/doc/iorate/patterns.ior \
X		share/doc/iorate/tests-ast.ior \
X		share/doc/iorate/tests-fx.ior \
X		share/doc/iorate/tests-var.ior \
X		share/doc/iorate/tests.ior
XPLIST_DIRS=	share/doc/iorate
X
X.include <bsd.port.mk>
a8fdcb72a588e1b736765129672042d0
echo x - iorate/pkg-descr
sed 's/^X//' >iorate/pkg-descr << 'a0bf67783870b47fc961bff5f40d02ff'
XIorate is a general purpose storage I/O benchmarking tool.
X
XIorate was created in 1997 by Vince Westin of EMC while working with Cliff
XBurrell of FedEx to fill a need to perform a set of storage I/O benchmarks.
XThough Iorate was developed by EMC staff with EMC resources there are no
XEMC-specific pieces to the testing, it just tests storage.
X
XIorate is freely available for public use.
X
XAuthor: Iorate was created in 1997 by Vince Westin of EMC
XWWW: http://iorate.org/
a0bf67783870b47fc961bff5f40d02ff
echo x - iorate/distinfo
sed 's/^X//' >iorate/distinfo << 'c6f8fae4e1a518b3da4a296a56799915'
XSHA256 (iorate-3.05-src.tar) = 6305413dc3ac7d833b0e4d99e30ac6cfd67b2f943b758166a3661c8f96b2480e
XSIZE (iorate-3.05-src.tar) = 460800
c6f8fae4e1a518b3da4a296a56799915
echo c - iorate/files
mkdir -p iorate/files > /dev/null 2>&1
echo x - iorate/files/patch-ior_mach.c
sed 's/^X//' >iorate/files/patch-ior_mach.c << '5fedfe2fc2bdaa8df416475e00291cec'
X--- ior_mach.c_orig	2013-01-27 02:03:38.000000000 +0200
X+++ ior_mach.c	2013-01-27 04:52:47.000000000 +0200
X@@ -411,6 +411,10 @@
X     };	
X 
X #else
X+#if	defined(IOR_LARGE_FILES) && defined(__FreeBSD__)
X+#define	IOR_SET_LOCK_FLAG	F_SETLK
X+    struct flock d_lock;		/* lock command to run */
X+#else
X #ifdef	IOR_LARGE_FILES
X #define	IOR_SET_LOCK_FLAG	F_SETLK64
X     struct flock64 d_lock;		/* lock command to run */
X@@ -418,6 +422,7 @@
X #define	IOR_SET_LOCK_FLAG	F_SETLK
X     struct flock d_lock;		/* lock command to run */
X #endif
X+#endif
X 
X     result = 0;				/* all OK so far */
X 
X@@ -486,6 +491,10 @@
X     };	
X 
X #else
X+#if	defined(IOR_LARGE_FILES) && defined(__FreeBSD__)
X+#define	IOR_SET_LOCK_FLAG	F_SETLK
X+    struct flock d_lock;		/* lock command to run */
X+#else
X #ifdef	IOR_LARGE_FILES
X #define	IOR_SET_LOCK_FLAG	F_SETLK64
X     struct flock64 d_lock;		/* lock command to run */
X@@ -493,6 +502,7 @@
X #define	IOR_SET_LOCK_FLAG	F_SETLK
X     struct flock d_lock;		/* lock command to run */
X #endif
X+#endif
X 
X     result = 0;				/* all OK so far */
X 
5fedfe2fc2bdaa8df416475e00291cec
echo x - iorate/files/patch-ior_mach.h
sed 's/^X//' >iorate/files/patch-ior_mach.h << 'c3f089872f9d6537386f75215a31c32d'
X--- ior_mach.h_orig	2013-01-27 01:03:32.000000000 +0200
X+++ ior_mach.h	2013-01-27 01:53:51.000000000 +0200
X@@ -142,7 +142,6 @@
X #define	IOR_MAX_SEEK		(HUGE)(4398046511104LL)	/* 4 TB */
X #endif
X 
X-
X /************************  OS is LINUX?  ************************/
X /*
X  * Since RedHat uses their own version, check for it
X@@ -203,6 +202,16 @@
X #endif
X 
X 
X+/************************  OS is FreeBSD?  ***********************/
X+#ifdef  __FreeBSD__
X+#include <unistd.h>
X+#ifdef  IOR_LARGE_FILES
X+#define HUGE                    __off_t
X+#define IOR_SEEK                lseek
X+#define IOR_MAX_SEEK            (HUGE)(4398046511104LL) /* 4 TB */
X+#endif
X+#endif
X+
X /************************  OS is unknown?  ************************/
X /*
X  * OK, not a known type, or did not set up large file support
X@@ -240,7 +249,7 @@
X /*
X  * process exit status
X  */
X-#if	defined( _AIX ) || defined( HPUX ) || defined( __CYGWIN__ )
X+#if	defined( _AIX ) || defined( HPUX ) || defined( __CYGWIN__ ) || defined(__FreeBSD__)
X #include <sys/wait.h>
X #else
X #include <wait.h>
c3f089872f9d6537386f75215a31c32d
echo x - iorate/files/patch-makefile
sed 's/^X//' >iorate/files/patch-makefile << '6a7c2623aa957278e7d5da39aaf1c22a'
X--- makefile_orig	2011-10-14 08:36:41.000000000 +0300
X+++ makefile	2013-01-27 07:07:58.000000000 +0200
X@@ -138,3 +138,32 @@
X 	mv y.tab.h $*.h
X 	mv y.output $*.stats
X 
X+install:
X+	install iorate \
X+		ior_rand \
X+		${PREFIX}/bin
X+	install -d ${DOCSDIR}
X+	install README \
X+		README.versions \
X+		cycle \
X+		run_test \
X+		run_var \
X+		run_ast \
X+		gen_dev.awk \
X+		gen_devs \
X+		gen_iops \
X+		gen_iops.awk \
X+		gen_stats \
X+		gen_stats.awk \
X+		gen_sum.awk \
X+		gen_sums \
X+		gen_totals \
X+		gen_totals.awk \
X+		devices.ior \
X+		patterns.ior \
X+		tests-ast.ior \
X+		tests-fx.ior \
X+		tests-var.ior \
X+		tests.ior \
X+		${DOCSDIR}
X+	install iorate.1 ${MANPREFIX}/man/man1
6a7c2623aa957278e7d5da39aaf1c22a
exit



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->danfe 
Responsible-Changed-By: danfe 
Responsible-Changed-When: Wed Jan 30 06:46:37 UTC 2013 
Responsible-Changed-Why:  
Grab it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=175630 
State-Changed-From-To: open->closed 
State-Changed-By: danfe 
State-Changed-When: Sat Jun 15 17:23:10 UTC 2013 
State-Changed-Why:  
Committed with modifications, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=175630 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/175630: commit references a PR
Date: Sat, 15 Jun 2013 17:21:49 +0000 (UTC)

 Author: danfe
 Date: Sat Jun 15 17:21:40 2013
 New Revision: 321007
 URL: http://svnweb.freebsd.org/changeset/ports/321007
 
 Log:
   Add the port of Iorate, a general purpose storage I/O benchmarking tool.
   
   PR:	ports/175630
 
 Added:
   head/benchmarks/iorate/
   head/benchmarks/iorate/Makefile   (contents, props changed)
   head/benchmarks/iorate/distinfo   (contents, props changed)
   head/benchmarks/iorate/files/
   head/benchmarks/iorate/files/patch-ior_mach.c   (contents, props changed)
   head/benchmarks/iorate/files/patch-ior_mach.h   (contents, props changed)
   head/benchmarks/iorate/pkg-descr   (contents, props changed)
   head/benchmarks/iorate/pkg-plist   (contents, props changed)
 Modified:
   head/benchmarks/Makefile
 
 Modified: head/benchmarks/Makefile
 ==============================================================================
 --- head/benchmarks/Makefile	Sat Jun 15 16:21:18 2013	(r321006)
 +++ head/benchmarks/Makefile	Sat Jun 15 17:21:40 2013	(r321007)
 @@ -26,6 +26,7 @@
      SUBDIR += httperf
      SUBDIR += imb
      SUBDIR += interbench
 +    SUBDIR += iorate
      SUBDIR += iozone
      SUBDIR += iozone21
      SUBDIR += iperf
 
 Added: head/benchmarks/iorate/Makefile
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/benchmarks/iorate/Makefile	Sat Jun 15 17:21:40 2013	(r321007)
 @@ -0,0 +1,41 @@
 +# $FreeBSD$
 +
 +PORTNAME=	iorate
 +PORTVERSION=	3.05
 +CATEGORIES=	benchmarks
 +MASTER_SITES=	http://sites.google.com/site/vwiorate/downloads/3-05/
 +DISTNAME=	iorate-${PORTVERSION}-src
 +EXTRACT_SUFX=	.tar
 +
 +MAINTAINER=	blttll@gmail.com
 +COMMENT=	General purpose storage I/O benchmarking tool
 +
 +USES=		bison
 +FETCH_ARGS=	-Fpr
 +MAKEFILE=	makefile
 +MAKE_ARGS=	CC="${CC}"
 +NO_WRKSUBDIR=	yes
 +
 +MAN1=		${PORTNAME}.1
 +PORTDOCS=	README README.versions
 +
 +OPTIONS_DEFINE=	DOCS
 +
 +.include <bsd.port.options.mk>
 +
 +post-patch:
 +	@${REINPLACE_CMD} -e 's,^CFLAGS ,&+,' ${WRKSRC}/${MAKEFILE}
 +
 +do-install:
 +	${INSTALL_PROGRAM} ${WRKSRC}/iorate ${WRKSRC}/ior_rand ${PREFIX}/bin
 +	${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MANPREFIX}/man/man1
 +	@${MKDIR} ${DATADIR}
 +	${INSTALL_SCRIPT} ${WRKSRC}/cycle ${WRKSRC}/gen_* ${WRKSRC}/run_* \
 +		${DATADIR}
 +	${INSTALL_DATA} ${WRKSRC}/*.ior ${DATADIR}
 +.if ${PORT_OPTIONS:MDOCS}
 +	@${MKDIR} ${DOCSDIR}
 +	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
 +.endif
 +
 +.include <bsd.port.mk>
 
 Added: head/benchmarks/iorate/distinfo
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/benchmarks/iorate/distinfo	Sat Jun 15 17:21:40 2013	(r321007)
 @@ -0,0 +1,2 @@
 +SHA256 (iorate-3.05-src.tar) = 6305413dc3ac7d833b0e4d99e30ac6cfd67b2f943b758166a3661c8f96b2480e
 +SIZE (iorate-3.05-src.tar) = 460800
 
 Added: head/benchmarks/iorate/files/patch-ior_mach.c
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/benchmarks/iorate/files/patch-ior_mach.c	Sat Jun 15 17:21:40 2013	(r321007)
 @@ -0,0 +1,40 @@
 +--- ior_mach.c_orig	2013-01-27 02:03:38.000000000 +0200
 ++++ ior_mach.c	2013-01-27 04:52:47.000000000 +0200
 +@@ -411,6 +411,10 @@
 +     };	
 + 
 + #else
 ++#if	defined(IOR_LARGE_FILES) && defined(__FreeBSD__)
 ++#define	IOR_SET_LOCK_FLAG	F_SETLK
 ++    struct flock d_lock;		/* lock command to run */
 ++#else
 + #ifdef	IOR_LARGE_FILES
 + #define	IOR_SET_LOCK_FLAG	F_SETLK64
 +     struct flock64 d_lock;		/* lock command to run */
 +@@ -418,6 +422,7 @@
 + #define	IOR_SET_LOCK_FLAG	F_SETLK
 +     struct flock d_lock;		/* lock command to run */
 + #endif
 ++#endif
 + 
 +     result = 0;				/* all OK so far */
 + 
 +@@ -486,6 +491,10 @@
 +     };	
 + 
 + #else
 ++#if	defined(IOR_LARGE_FILES) && defined(__FreeBSD__)
 ++#define	IOR_SET_LOCK_FLAG	F_SETLK
 ++    struct flock d_lock;		/* lock command to run */
 ++#else
 + #ifdef	IOR_LARGE_FILES
 + #define	IOR_SET_LOCK_FLAG	F_SETLK64
 +     struct flock64 d_lock;		/* lock command to run */
 +@@ -493,6 +502,7 @@
 + #define	IOR_SET_LOCK_FLAG	F_SETLK
 +     struct flock d_lock;		/* lock command to run */
 + #endif
 ++#endif
 + 
 +     result = 0;				/* all OK so far */
 + 
 
 Added: head/benchmarks/iorate/files/patch-ior_mach.h
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/benchmarks/iorate/files/patch-ior_mach.h	Sat Jun 15 17:21:40 2013	(r321007)
 @@ -0,0 +1,36 @@
 +--- ior_mach.h_orig	2013-01-27 01:03:32.000000000 +0200
 ++++ ior_mach.h	2013-01-27 01:53:51.000000000 +0200
 +@@ -142,7 +142,6 @@
 + #define	IOR_MAX_SEEK		(HUGE)(4398046511104LL)	/* 4 TB */
 + #endif
 + 
 +-
 + /************************  OS is LINUX?  ************************/
 + /*
 +  * Since RedHat uses their own version, check for it
 +@@ -203,6 +202,16 @@
 + #endif
 + 
 + 
 ++/************************  OS is FreeBSD?  ***********************/
 ++#ifdef  __FreeBSD__
 ++#include <unistd.h>
 ++#ifdef  IOR_LARGE_FILES
 ++#define HUGE                    __off_t
 ++#define IOR_SEEK                lseek
 ++#define IOR_MAX_SEEK            (HUGE)(4398046511104LL) /* 4 TB */
 ++#endif
 ++#endif
 ++
 + /************************  OS is unknown?  ************************/
 + /*
 +  * OK, not a known type, or did not set up large file support
 +@@ -240,7 +249,7 @@
 + /*
 +  * process exit status
 +  */
 +-#if	defined( _AIX ) || defined( HPUX ) || defined( __CYGWIN__ )
 ++#if	defined( _AIX ) || defined( HPUX ) || defined( __CYGWIN__ ) || defined(__FreeBSD__)
 + #include <sys/wait.h>
 + #else
 + #include <wait.h>
 
 Added: head/benchmarks/iorate/pkg-descr
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/benchmarks/iorate/pkg-descr	Sat Jun 15 17:21:40 2013	(r321007)
 @@ -0,0 +1,8 @@
 +Iorate is a general purpose storage I/O benchmarking tool.
 +
 +Iorate was created in 1997 by Vince Westin of EMC while working with Cliff
 +Burrell of FedEx to fill a need to perform a set of storage I/O benchmarks.
 +Though Iorate was developed by EMC staff with EMC resources there are no
 +EMC-specific pieces to the testing, it just tests storage.
 +
 +WWW: http://iorate.org/
 
 Added: head/benchmarks/iorate/pkg-plist
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/benchmarks/iorate/pkg-plist	Sat Jun 15 17:21:40 2013	(r321007)
 @@ -0,0 +1,23 @@
 +bin/ior_rand
 +bin/iorate
 +%%DATADIR%%/cycle
 +%%DATADIR%%/devices.ior
 +%%DATADIR%%/gen_dev.awk
 +%%DATADIR%%/gen_devs
 +%%DATADIR%%/gen_iops
 +%%DATADIR%%/gen_iops.awk
 +%%DATADIR%%/gen_stats
 +%%DATADIR%%/gen_stats.awk
 +%%DATADIR%%/gen_sum.awk
 +%%DATADIR%%/gen_sums
 +%%DATADIR%%/gen_totals
 +%%DATADIR%%/gen_totals.awk
 +%%DATADIR%%/patterns.ior
 +%%DATADIR%%/run_ast
 +%%DATADIR%%/run_test
 +%%DATADIR%%/run_var
 +%%DATADIR%%/tests-ast.ior
 +%%DATADIR%%/tests-fx.ior
 +%%DATADIR%%/tests-var.ior
 +%%DATADIR%%/tests.ior
 +@dirrm %%DATADIR%%
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
>Unformatted:
