mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
33bf00180f
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
27 lines
542 B
Makefile
27 lines
542 B
Makefile
# ex:ts=8
|
|
# Ports collection makefile for: Rawio
|
|
# Date created: Sun Aug 08, 1999
|
|
# Whom: David O'Brien (obrien@NUXI.com)
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= rawio
|
|
PORTVERSION= 1.2
|
|
PORTREVISION= 2
|
|
CATEGORIES= benchmarks
|
|
MASTER_SITES= ftp://ftp.lemis.com/pub/
|
|
|
|
MAINTAINER= grog@FreeBSD.org
|
|
COMMENT= Test performance of low-level storage devices
|
|
|
|
NO_WRKSUBDIR= yes
|
|
MAN1= rawio.1
|
|
PLIST_FILES= bin/rawio
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/rawio ${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/rawio.1 ${PREFIX}/man/man1
|
|
|
|
.include <bsd.port.mk>
|