Skip to content

Latest commit

 

History

History
54 lines (31 loc) · 1020 Bytes

README.md

File metadata and controls

54 lines (31 loc) · 1020 Bytes

Offline File System (OFS)

State

Offline File System is still in alpha state and not very stable.

Fork of http://offlinefs.sourceforge.net/

Building

Required packages

sudo apt-get install cmake pkg-config g++ libfuse-dev libattr1-dev attr libconfuse-dev libdbus-1-dev

Optional packages for documentation

sudo apt-get install doxygen graphviz texlive-extra-utils

Compilation

mkdir build
cd build
cmake ..
make
sudo make install
sudo ldconfig

Usage

Mount

sudo mount -t ofs fstype://server/share /some/mountpoint

Make folders available offline

setfattr -n ofs.offline /path/to/directory

Go offline

setfattr -x ofs.available /mnt

Go online

setfattr -n ofs.available /mnt

Find conflicts

getfattr -n ofs.conflict /mnt
getfattr -n ofs.conflict /mnt/*

Resolve Conflicts

setfattr -n ofs.conflict -v=local /path/to/conflicted/file
setfattr -n ofs.conflict -v=remote /path/to/conflicted/file