Revision: 2598
          http://gar.svn.sourceforge.net/gar/?rev=2598&view=rev
Author:   dmichelsen
Date:     2008-12-15 12:52:17 +0000 (Mon, 15 Dec 2008)

Log Message:
-----------
automatic-multiarch-compile/apps iozone: Initial commit

Added Paths:
-----------
    csw/branches/dam/automatic-multiarch-compile/apps/iozone/
    csw/branches/dam/automatic-multiarch-compile/apps/iozone/Makefile
    csw/branches/dam/automatic-multiarch-compile/apps/iozone/checksums
    csw/branches/dam/automatic-multiarch-compile/apps/iozone/files/
    
csw/branches/dam/automatic-multiarch-compile/apps/iozone/files/CSWiozone.gspec
    
csw/branches/dam/automatic-multiarch-compile/apps/iozone/files/patch-vx_ioctl.diff
    csw/branches/dam/automatic-multiarch-compile/apps/iozone/files/vx_ioctl.h

Added: csw/branches/dam/automatic-multiarch-compile/apps/iozone/Makefile
===================================================================
--- csw/branches/dam/automatic-multiarch-compile/apps/iozone/Makefile           
                (rev 0)
+++ csw/branches/dam/automatic-multiarch-compile/apps/iozone/Makefile   
2008-12-15 12:52:17 UTC (rev 2598)
@@ -0,0 +1,61 @@
+GARNAME = iozone
+GARVERSION = 3.291
+VERSION = $(shell echo $(GARVERSION) | sed -e 's/\./_/g')
+CATEGORIES = apps
+
+DESCRIPTION = IO benchmarking tool
+define BLURB
+  IOzone is a filesystem benchmark tool. The benchmark
+  generates and measures a variety of file operations.
+  Iozone has been ported to many machines and runs under
+  many operating systems.
+endef
+
+MASTER_SITES  = http://www.iozone.org/src/current/
+#MASTER_SITES += http://www.iozone.org/docs/
+DISTFILES  = $(GARNAME)$(VERSION).tar
+DISTFILES += vx_ioctl.h
+DISTFILES += $(call admfiles,CSWiozone)
+
+DISTNAME = $(GARNAME)$(VERSION)
+
+PATCHFILES = patch-vx_ioctl.diff
+
+#DOCS = IOzone_msword_98.pdf
+#DOCS += Iozone_ps.gz
+#DOCS += IOzone_msword_98.doc
+#DOCS += Run_rules.doc
+
+WORKSRC = $(WORKDIR)/$(DISTNAME)/src/current
+DOCSRC = $(WORKDIR)/$(DISTNAME)/docs
+
+# We don't have this modern autoconfig-doodle-crap
+CONFIGURE_SCRIPTS =
+TEST_SCRIPTS =
+
+BUILD_SCRIPTS = $(WORKSRC)/makefile
+
+MODULATORS = TARGET
+MODULATIONS_TARGET = 32 64
+
+BUILD_ARGS_32 = Solaris
+BUILD_ARGS_64 = Solaris8-64
+BUILD_ARGS = $(BUILD_ARGS_$(TARGET))
+
+INSTALL_SCRIPTS = custom
+
+include ../category.mk
+
+# Make sure the VxFS header is in place
+post-extract:
+       @cp $(WORKDIR)/vx_ioctl.h $(WORKSRC)
+       @$(MAKECOOKIE)
+
+# The install part from the Makefile is completely unrelocatable :-(
+install-custom:
+       @echo " ==> Installing $(GARNAME)"
+       ginstall -d $(DESTDIR)$(bindir)
+       ginstall $(WORKSRC)/iozone $(DESTDIR)$(bindir)
+       ginstall -d $(DESTDIR)$(mandir)/man1
+       ginstall $(DOCSRC)/iozone.1 $(DESTDIR)$(mandir)/man1
+       @$(MAKECOOKIE)

Added: csw/branches/dam/automatic-multiarch-compile/apps/iozone/checksums
===================================================================
--- csw/branches/dam/automatic-multiarch-compile/apps/iozone/checksums          
                (rev 0)
+++ csw/branches/dam/automatic-multiarch-compile/apps/iozone/checksums  
2008-12-15 12:52:17 UTC (rev 2598)
@@ -0,0 +1,4 @@
+fceb0146e50e714a6c4b3618489e4880  download/iozone3_291.tar
+5c485e1e0f464c4c47b05140f383b4b2  download/vx_ioctl.h
+84aa96a0593883e2e6a38504be8a0aec  download/CSWiozone.gspec
+bbf1f15160145b829dbc00b8c8c7b60e  download/patch-vx_ioctl.diff

Added: 
csw/branches/dam/automatic-multiarch-compile/apps/iozone/files/CSWiozone.gspec
===================================================================
--- 
csw/branches/dam/automatic-multiarch-compile/apps/iozone/files/CSWiozone.gspec  
                            (rev 0)
+++ 
csw/branches/dam/automatic-multiarch-compile/apps/iozone/files/CSWiozone.gspec  
    2008-12-15 12:52:17 UTC (rev 2598)
@@ -0,0 +1,4 @@
+%var            bitname iozone
+%var            pkgname CSWiozone
+%include        url file://%{PKGLIB}/csw_dyndepend.gspec
+%copyright      url file://%{WORKSRC}/LICENSE

Added: 
csw/branches/dam/automatic-multiarch-compile/apps/iozone/files/patch-vx_ioctl.diff
===================================================================
--- 
csw/branches/dam/automatic-multiarch-compile/apps/iozone/files/patch-vx_ioctl.diff
                          (rev 0)
+++ 
csw/branches/dam/automatic-multiarch-compile/apps/iozone/files/patch-vx_ioctl.diff
  2008-12-15 12:52:17 UTC (rev 2598)
@@ -0,0 +1,24 @@
+diff -Naur  tmp/iozone3_291/src/current/iozone.c 
work/root-blastwavepkg.d/iozone3_291/src/current/iozone.c
+--- current/iozone.c   2008-03-03 16:38:17.000000000 +0100
++++ current/iozone.c   2008-04-23 11:20:00.862783000 +0200
+@@ -338,7 +338,7 @@
+ #endif
+ 
+ #ifdef VXFS
+-#include <sys/fs/vx_ioctl.h>
++#include "vx_ioctl.h"
+ #endif
+ 
+ #ifdef unix
+diff -Naur tmp/iozone3_291/src/current/libasync.c 
work/root-blastwavepkg.d/iozone3_291/src/current/libasync.c
+--- current/libasync.c 2008-03-03 16:38:17.000000000 +0100
++++ current/libasync.c 2008-04-23 11:20:09.562273000 +0200
+@@ -106,7 +106,7 @@
+ #include <malloc.h>
+ #endif
+ #ifdef VXFS
+-#include <sys/fs/vx_ioctl.h>
++#include "vx_ioctl.h"
+ #endif
+ 
+ #if defined(OSFV5) || defined(linux)

Added: csw/branches/dam/automatic-multiarch-compile/apps/iozone/files/vx_ioctl.h
===================================================================
--- csw/branches/dam/automatic-multiarch-compile/apps/iozone/files/vx_ioctl.h   
                        (rev 0)
+++ csw/branches/dam/automatic-multiarch-compile/apps/iozone/files/vx_ioctl.h   
2008-12-15 12:52:17 UTC (rev 2598)
@@ -0,0 +1,135 @@
+/* @(#)src/unix/pagecache/sol/common/kernel/base/vx_ioctl.h    3.15 10/05/00 
14:53:28 -  */
+/* #ident "@(#)vxfs:src/unix/pagecache/sol/common/kernel/base/vx_ioctl.h       
3.15" */
+
+/*
+ * Copyright (c) 2000 VERITAS Software Corporation.  ALL RIGHTS RESERVED.
+ * UNPUBLISHED -- RIGHTS RESERVED UNDER THE COPYRIGHT
+ * LAWS OF THE UNITED STATES.  USE OF A COPYRIGHT NOTICE
+ * IS PRECAUTIONARY ONLY AND DOES NOT IMPLY PUBLICATION
+ * OR DISCLOSURE.
+ *
+ * THIS SOFTWARE CONTAINS CONFIDENTIAL INFORMATION AND
+ * TRADE SECRETS OF VERITAS SOFTWARE.  USE, DISCLOSURE,
+ * OR REPRODUCTION IS PROHIBITED WITHOUT THE PRIOR
+ * EXPRESS WRITTEN PERMISSION OF VERITAS SOFTWARE.
+ *
+ *             RESTRICTED RIGHTS LEGEND
+ * USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT IS
+ * SUBJECT TO RESTRICTIONS AS SET FORTH IN SUBPARAGRAPH
+ * (C) (1) (ii) OF THE RIGHTS IN TECHNICAL DATA AND
+ * COMPUTER SOFTWARE CLAUSE AT DFARS 252.227-7013.
+ *             VERITAS SOFTWARE
+ * 1600 PLYMOUTH STREET, MOUNTAIN VIEW, CA 94043
+ */
+
+#ifndef        _FS_VXFS_VX_IOCTL_H
+#define        _FS_VXFS_VX_IOCTL_H
+
+#include <sys/types.h>
+
+#define VX_IOCTL               (('V' << 24) | ('X' << 16) | ('F' << 8))
+
+/*
+ * User group ioctls
+ */
+
+#define        VX_SETCACHE     (VX_IOCTL | 1)          /* set cache advice */
+#define        VX_GETCACHE     (VX_IOCTL | 2)          /* get cache advice */
+#define        VX_GETFSOPT     (VX_IOCTL | 5)          /* get cache advice */
+
+#if _FILE_OFFSET_BITS==64
+#define        VX_SETEXT       (VX_IOCTL | 39)
+#define        VX_GETEXT       (VX_IOCTL | 40)
+#else
+#define        VX_SETEXT       (VX_IOCTL | 3)
+#define        VX_GETEXT       (VX_IOCTL | 4)
+#endif /*_FILE_OFFSET_BITS==64*/
+
+struct vx_ext {
+       off_t   ext_size;               /* extent size in fs blocks */
+       off_t   reserve;                /* space reservation in fs blocks */
+       int     a_flags;                /* allocation flags */
+};
+
+#ifdef _LP64
+#define VX_FREEZE_ALL  (VX_IOCTL | 6)
+#else
+#define VX_FREEZE_ALL  (VX_IOCTL | 41)
+#endif /*_LP64*/
+
+/*
+ * The VX_FREEZE_ALL ioctl uses the following structure
+ */
+
+struct vx_freezeall {
+       int     num;            /* number of fd pointed to */
+       int     timeout;        /* timeout value for the freeze all */
+       int     *fds;           /* buffer for file descriptor list */
+};
+
+/*
+ * Values for freeze and thaw ioctls.  These must match the volume manager
+ * VOL_FREEZE and VOL_THAW ioctl values.
+ *
+ * These are in the user group as opposed to the admin group because we need
+ * to maintain backward binary compatibility with VxVM.
+ */
+
+#ifndef        VOLIOC
+#define        VOLIOC  (('V' << 24) | ('O' << 16) | ('L' << 8))
+#endif /* VOLIOC */
+
+#define        VX_FREEZE       (VOLIOC | 100)  /* freeze the file system */
+#define        VX_THAW         (VOLIOC | 101)  /* unfreeze the file system */
+
+/*
+ * values for a_flags in vx_ext
+ */
+
+#define        VX_AFLAGS       0x3f    /* valid flags for a_flags */
+#define        VX_NOEXTEND     0x01    /* file is not to be extended */
+#define        VX_TRIM         0x02    /* trim reservation to i_size on close 
*/
+#define        VX_CONTIGUOUS   0x04    /* file must be contiguously allocated 
*/
+#define        VX_ALIGN        0x08    /* extents allocated on extent 
boundaries */
+#define        VX_NORESERVE    0x10    /* don't change i_reserve */
+#define        VX_CHGSIZE      0x20    /* change i_size to match reservation */
+
+/*
+ * vx_setcache flags
+ */
+
+#define        VX_ADVFLAGS             0x0003f /* valid advisory flags */
+#define        VX_RANDOM               0x00001 /* file is accessed randomly */
+#define        VX_SEQ                  0x00002 /* file is accessed 
sequentially */
+#define        VX_DIRECT               0x00004 /* perform direct (un-buffered) 
i/o */
+#define        VX_NOREUSE              0x00008 /* do not cache file data */
+#define        VX_DSYNC                0x00010 /* synchronous data i/o (not 
mtime) */
+#define        VX_UNBUFFERED           0x00020 /* perform non-sync direct i/o 
*/
+
+/*
+ * Flags for VX_GETFSOPT
+ */
+
+#define        VX_FSO_NOLOG            0x0000001 /* mounted with VX_MS_NOLOG */
+#define        VX_FSO_BLKCLEAR         0x0000002 /* mounted with 
VX_MS_BLKCLEAR */
+#define        VX_FSO_NODATAINLOG      0x0000004 /* mounted with 
VX_MS_NODATAINLOG */
+#define        VX_FSO_SNAPSHOT         0x0000008 /* is a snapshot */
+#define        VX_FSO_SNAPPED          0x0000010 /* is being snapped */
+#define        VX_FSO_VJFS             0x0000020 /* the kernel is VJFS */
+#define        VX_FSO_DELAYLOG         0x0000040 /* mounted with 
VX_MS_DELAYLOG */
+#define        VX_FSO_TMPLOG           0x0000080 /* mounted with VX_MS_TMPLOG 
*/
+#define        VX_FSO_CACHE_DIRECT     0x0000100 /* mounted with 
VX_MS_CACHE_DIRECT */
+#define        VX_FSO_CACHE_DSYNC      0x0000200 /* mounted with 
VX_MS_CACHE_DSYNC */
+#define        VX_FSO_CACHE_CLOSESYNC  0x0000400 /* mnt'd with 
VX_MS_CACHE_CLOSESYNC */
+#define        VX_FSO_OSYNC_DIRECT     0x0001000 /* mounted with 
VX_MS_OSYNC_DIRECT */
+#define        VX_FSO_OSYNC_DSYNC      0x0002000 /* mounted with 
VX_MS_OSYNC_DSYNC */
+#define        VX_FSO_OSYNC_CLOSESYNC  0x0004000 /* mnt'd with 
VX_MS_OSYNC_CLOSESYNC */
+#define        VX_FSO_FILESET          0x0010000 /* mounted as a file set */
+#define        VX_FSO_CACHE_TMPCACHE   0x0020000 /* mnt'd with 
VX_MS_CACHE_TMPCACHE */
+#define        VX_FSO_OSYNC_DELAY      0x0040000 /* mounted with 
VX_MS_OSYNC_DELAY */
+#define        VX_FSO_CACHE_UNBUFFERED 0x0080000 /* mnt'd w/ 
VX_MS_CACHE_UNBUFFERED */
+#define        VX_FSO_OSYNC_UNBUFFERED 0x0100000 /* mounted with 
VX_MS_UNBUFFERED */
+#define        VX_FSO_QIO_ON           0x0200000 /* mounted with VX_MS_QIO_ON 
*/
+#define        VX_FSO_NOATIME          0x0400000 /* mounted with VX_MS_NOATIME 
*/
+
+#endif /* _FS_VXFS_VX_IOCTL_H */


Property changes on: 
csw/branches/dam/automatic-multiarch-compile/apps/iozone/files/vx_ioctl.h
___________________________________________________________________
Added: svn:executable
   + *


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.
_______________________________________________
devel mailing list
devel@lists.opencsw.org
https://lists.opencsw.org/mailman/listinfo/devel

Reply via email to