Commit a9c0aeb3 authored by Andrew Ayer's avatar Andrew Ayer

Initial commit

parents
*.o
/disorderfs
/disorderfs.1
This diff is collapsed.
#
# Copyright 2015 Andrew Ayer
#
# This file is part of disorderfs.
#
# disorderfs is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# disorderfs is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with disorderfs. If not, see <http://www.gnu.org/licenses/>.
#
# Note: uses GNU Make features
CXXFLAGS ?= -Wall -Wextra -pedantic -O2
PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin
MANDIR ?= $(PREFIX)/share/man
ENABLE_MAN ?= $(HAS_A2X)
# a2x
HAS_A2X ?= $(shell command -v a2x >/dev/null && echo yes || echo no)
# FUSE
FUSE_CFLAGS ?= $(shell pkg-config --cflags fuse) -DFUSE_USE_VERSION=26
FUSE_LIBS ?= $(shell pkg-config --libs fuse)
# CXXFLAGS
CXXFLAGS += -std=c++11 -Wno-unused-parameter
CXXFLAGS += $(FUSE_CFLAGS)
# Files
OBJFILES = disorderfs.o
all: build
#
# Build
#
BUILD_MAN_TARGETS-yes = build-man
BUILD_MAN_TARGETS-no =
BUILD_TARGETS := build-bin $(BUILD_MAN_TARGETS-$(ENABLE_MAN))
build: $(BUILD_TARGETS)
build-bin: disorderfs
disorderfs: $(OBJFILES)
$(CXX) $(CXXFLAGS) -o $@ $(OBJFILES) $(LDFLAGS) $(FUSE_LIBS)
build-man: disorderfs.1
disorderfs.1: disorderfs.1.txt
a2x --doctype manpage --format manpage disorderfs.1.txt
#
# Clean
#
CLEAN_MAN_TARGETS-yes = clean-man
CLEAN_MAN_TARGETS-no =
CLEAN_TARGETS := clean-bin $(CLEAN_MAN_TARGETS-$(ENABLE_MAN))
clean: $(CLEAN_TARGETS)
clean-bin:
rm -f $(OBJFILES) disorderfs
clean-man:
rm -f disorderfs.1
#
# Install
#
INSTALL_MAN_TARGETS-yes = install-man
INSTALL_MAN_TARGETS-no =
INSTALL_TARGETS := install-bin $(INSTALL_MAN_TARGETS-$(ENABLE_MAN))
install: $(INSTALL_TARGETS)
install-bin: build-bin
install -d $(DESTDIR)$(BINDIR)
install -m 755 disorderfs $(DESTDIR)$(BINDIR)/
install-man: build-man
install -d $(DESTDIR)$(MANDIR)/man1
install -m 644 disorderfs.1 $(DESTDIR)$(MANDIR)/man1/
.PHONY: all \
build build-bin build-man \
clean clean-bin clean-man \
install install-bin install-man
disorderfs - FUSE filesystem that introduces non-determinism
disorderfs is an overlay FUSE filesystem that introduces non-determinism
into filesystem metadata. For example, it can randomize the order
in which directory entries are read. This is useful for detecting
non-determinism in the build process.
See the man page for details.
DISORDERFS(1)
=============
:doctype: manpage
:revdate: 2015-08-21
NAME
----
disorderfs - FUSE filesystem that introduces non-determinism
SYNOPSIS
--------
*disorderfs* ['OPTIONS'...] 'ROOTDIR' 'MOUNTPOINT'
DESCRIPTION
-----------
*disorderfs* is an overlay FUSE filesystem that introduces non-determinism
into filesystem metadata. For example, it can randomize the order
in which directory entries are read. This is useful for detecting
non-determinism in the build process.
'ROOTDIR' is the underlying directory that is to be mirrored, and 'MOUNTPOINT' is
where the overlay should be mounted.
OPTIONS
-------
See fusermount(1), mount.fuse(8), and mount(8) for a full list of options.
Options specific to *disorderfs*:
*--help*, *-h*::
Display help.
*--version*, *-V*::
Display the version.
BUGS
----
Errors from close are not properly reported.
fsync is not implemented.
xattrs are not implemented.
Locks are not propagated to the underlying filesystem.
AUTHOR
------
Andrew Ayer <agwa@andrewayer.name>
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment