|
NAMEunreliablefs —
a FUSE-based fault-injecting filesystem
SYNOPSIS
DESCRIPTIONTheunreliablefs is a filesystem that allows to inject
errors on file operations. Without configuration it works as pass-through
filesystem and redirects file operations to a file objects on a real
filesystem.
The options are as follows:
Supported file operations are: access(2), chmod(2), chown(2), creat(2), fallocate(2), flock(2), fsync(2), ftruncate(2), getxattr(2), ioctl(2), link(2), listxattr(2), lock(2), lstat(2), mkdir(2), mknod(2), open(2), read(2), readdir(2), readlink(2), removexattr(2), rename(2), rmdir(2), setxattr(2), statfs(2), symlink(2), truncate(2), unlink(2), utimensat(2), write(2). Following functions are unsupported on OpenBSD: removexattr(2), setxattr(2), getxattr(2), listxattr(2), flock(2), fallocate(2). EXIT STATUSTheunreliablefs utility exits 0 on success,
and >0 if an error occurs.
EXAMPLES$ mkdir /tmp/fs $ unreliablefs /tmp/fs -basedir=/tmp -seed=1618680646 $ cat << EOF > /tmp/fs/unreliablefs.conf [errinj_noop] op_regexp = .* path_regexp = .* probability = 30 EOF $ ls -la $ umount /tmp/fs SEE ALSOfusermount(1), errno(2), fuse(4), fuse(8), unreliablefs.conf(5), mount.fuse(8)AUTHORSTheunreliablefs utility was written by
Sergey Bronnikov.
CAVEATSFaults can be injected before a start of a file operation, and cannot be injected say in a middle of file operation. So if a file operation has been successfully started thenunreliablefs will not affect
it and final result entirely depends on a base filesystem and application that
started file operation.
Visit the GSP FreeBSD Man Page Interface. |