Tree
- Tree:
7489fde21e90d7f20936835d054e2a2381240fe1
- Date:
- Message:
- Use check_function_exists() to detect functions support Some operating systems missed fallocate(), utimens(), flock(), setxattr(), getxattr(), listxattr() and removexattr() support. Right now source code related to these functions enabled explicitly on OSes where it is supported. It's better to detect functions in runtime using CMake's check_function_exists() and enable appropriate define if function exists in a system. Seems ioctl() supported everywhere, so condition compilation has been removed.
README.md
## UnreliableFS is a FUSE-based fault injection filesystem. ### Building Prerequisites: - CentOS: `dnf install -y gcc -y cmake fuse fuse-devel` - Ubuntu: `apt-get install -y gcc cmake fuse libfuse-dev` - FreeBSD: `pkg install gcc cmake fusefs-libs pkgconf` - OpenBSD: `pkg_add cmake` - macOS: `brew install --cask osxfuse` ```sh $ mkdir build && cd build $ cmake -DCMAKE_BUILD_TYPE=Debug .. && make -j ``` ### Using ```sh $ ./build/unreliablefs ~/Downloads/mnt/ -omodules=subdir,subdir=/tmp $ ls ~/Downloads/mnt/ $ umount /tmp/unreliable ```