pkgsrc/benchmarks/blogbench/patches/patch-ab
xtraeme 8ed9453827 Add patches to support a new flag:
--directio or -o (if enabled uses O_DIRECT in open(2)).

Useful to test performance of Direct I/O implementation on NetBSD.

Bump PKGREVISION.
2006-10-15 12:53:04 +00:00

21 lines
634 B
Text

$NetBSD: patch-ab,v 1.1 2006/10/15 12:53:04 xtraeme Exp $
--- src/blogbench_p.h.orig 2006-10-15 13:08:03.000000000 +0200
+++ src/blogbench_p.h 2006-10-15 13:08:32.000000000 +0200
@@ -1,7 +1,7 @@
#ifndef __BLOGBENCH_P_H__
#define __BLOGBENCH_P_H__ 1
-static const char *GETOPT_OPTIONS = "c:d:hi:r:W:s:w:";
+static const char *GETOPT_OPTIONS = "c:d:hi:or:W:s:w:";
static struct option long_options[] = {
{ "commenters", 1, NULL, 'c' },
@@ -12,6 +12,7 @@
{ "rewriters", 0, NULL, 'W' },
{ "sleep", 1, NULL, 's' },
{ "writers", 1, NULL, 'w' },
+ { "directio", 0, NULL, 'o' },
{ NULL, 0, NULL, 0 }
};