e7db2d3588
This driver can be loaded as an overlay on top of a real block device, and can then be used to generate block-level failures for certain transfer requests. Specifically, a rule-based system allows the user to introduce (overt and silent) data corruption and errors. It exposes itself through /dev/fbd, and a file system can be mounted on top of it. The new fbdctl(8) tool can be used to control the driver; see ``man fbdctl'' for details. It also comes with a test set, located in test/fbdtest.
22 lines
358 B
Makefile
22 lines
358 B
Makefile
# Makefile for the Faulty Block Device (FBD)
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
PROG= fbd
|
|
SRCS= fbd.c rule.c action.c
|
|
|
|
DPADD+= ${LIBBLOCKDRIVER} ${LIBSYS}
|
|
LDADD+= -lblockdriver -lsys -lc
|
|
CPPFLAGS+= -DDEBUG=0
|
|
|
|
# The FBD driver requires NetBSD libc.
|
|
.if ${COMPILER_TYPE} != "gnu"
|
|
CC:=clang
|
|
COMPILER_TYPE:=gnu
|
|
.endif
|
|
|
|
MAN=
|
|
|
|
BINDIR?= /usr/sbin
|
|
|
|
.include <minix.service.mk>
|