summaryrefslogtreecommitdiff
path: root/benchmarks/rawio/Makefile
diff options
context:
space:
mode:
authorBrian Feldman <green@FreeBSD.org>2005-10-26 18:40:43 +0000
committerBrian Feldman <green@FreeBSD.org>2005-10-26 18:40:43 +0000
commit33bf00180fe416a85d9f2062406cd83151b2cfaf (patch)
tree5d3204f2465fc2c25b4900ad7436ad41b0d8c15a /benchmarks/rawio/Makefile
parentUpdate to 2.14.0 (diff)
Modify rawio(1) to work with GEOM by losing the multiple-open(2)
semantics. As GEOM prevents actual concurrent accesses that are deemed generally unsafe. As we know, as a rawio(1) user, that we are intending to do something ostensibly unsafe, we can use a single open(2) shared among the worker children and then use pread(2) and pwrite(2) instead of read(2), write(2) and lseek(2). This properly bypasses the sanity checks GEOM makes for concurrent access. Additionally, sector size isn't and hasn't ever been necessarily 512 (or a multiple thereof), but we don't have many classical examples of devices not the common case that we'd test rawio(1) with. In my particular case, I'm using graid3(8) and have an effective sector size of 1024. The program now attempts to use DIOCGSECTORSIZE to find the correct base for a device and thus Works For Me. Cursory review by: MAINTAINER
Notes
Notes: svn path=/head/; revision=146432
Diffstat (limited to 'benchmarks/rawio/Makefile')
-rw-r--r--benchmarks/rawio/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmarks/rawio/Makefile b/benchmarks/rawio/Makefile
index d6ab812f7c07..40458bde2aa9 100644
--- a/benchmarks/rawio/Makefile
+++ b/benchmarks/rawio/Makefile
@@ -8,7 +8,7 @@
PORTNAME= rawio
PORTVERSION= 1.2
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= benchmarks
MASTER_SITES= ftp://ftp.lemis.com/pub/