GitHub - gburca/rofs-filtered: A filtered read-only filesystem for FUSE (original) (raw)

Build Status Coverity

This FUSE file system allows the user to mount a directory tree as read-only and filter the files shown in the read-only directory tree based on regular expressions found in the rofs-filtered.rc configuration file. See the rofs-filtered.rc file for more details.

What's the use of such a file system? Here are two use cases:

Based on: ROFS - The read-only filesystem for FUSE.

Get the latest version from:https://github.com/gburca/rofs-filtered

Dependencies:

Building:

mkdir build
cd build
cmake ..
make
sudo make install

On Mac OS X 10.10 Yosemite or later you can use Homebrew to install:

brew install rofs-filtered 

Using:

/usr/local/bin/rofs-filtered	/the/read/write/device /the/read/only/mount/point fuse defaults,allow_other 0 0
/usr/local/bin/rofs-filtered	/the/ro/mount/point1	fuse	defaults,allow_other,source=/the/rw/device1,config=/etc/filter1.rc
/usr/local/bin/rofs-filtered	/the/ro/mount/point2	fuse	defaults,allow_other,source=/the/rw/device2,config=/etc/filter2.rc
rofs-filtered <Filtered-Path> -o source=<RW-Path> [-o config=/etc/filter1.rc] [FUSE options]
fusermount -u /the/read/only/mount/point 
# OR
umount /the/read/only/mount/point
/usr/local/bin/rofs-filtered	/the/ro/mount/point1	fuse	defaults,allow_other,source=/the/rw/device1,config=/etc/filter1.rc,invert
rofs-filtered <Filtered-Path> -o source=<RW-Path> -o invert [-o config=/etc/filter1.rc] [FUSE options]
rofs-filtered ... -o debug -f

Tips