2019-01-27 01:10:39 +00:00
|
|
|
# fuse-wsfs
|
2019-01-27 11:32:02 +00:00
|
|
|
|
|
|
|
fuse-wsfs combines libwebsockets and libfuse. It allows ot attach a remote filesystem via websockets.
|
|
|
|
|
2019-02-10 09:00:44 +00:00
|
|
|
**Status**: Proof of concept
|
|
|
|
***Latest Build on travis***: [https://travis-ci.com/falk-werner/fuse-wsfs](https://travis-ci.com/falk-werner/fuse-wsfs)
|
2019-01-27 11:32:02 +00:00
|
|
|
|
|
|
|
# Build and run
|
|
|
|
|
2019-02-10 10:48:25 +00:00
|
|
|
To install dependencies, see below.
|
|
|
|
|
2019-01-27 11:32:02 +00:00
|
|
|
cd fuse-wsfs
|
|
|
|
mkdir ./build
|
|
|
|
cd ./build
|
2019-01-30 20:53:57 +00:00
|
|
|
cmake .. -DWITH_TESTS=ON
|
2019-01-27 11:32:02 +00:00
|
|
|
make
|
2019-01-30 20:53:57 +00:00
|
|
|
CTEST_OUTPUT_ON_FAILUE=1 make test
|
2019-01-27 11:32:02 +00:00
|
|
|
mkdir test
|
2019-01-31 20:45:08 +00:00
|
|
|
./wsfs -m test --document_root=`realpath ../src/app/www` --port=4711
|
2019-01-27 11:32:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Dependencies
|
|
|
|
|
|
|
|
- [libfuse3](https://github.com/libfuse/libfuse/)
|
|
|
|
- [libwebsockets](https://libwebsockets.org/)
|
|
|
|
- [Jansson](https://jansson.readthedocs.io)
|
2019-01-30 20:53:57 +00:00
|
|
|
- [GoogleTest](https://github.com/google/googletest) *(optional)*
|
2019-01-27 11:32:02 +00:00
|
|
|
|
2019-02-10 10:48:25 +00:00
|
|
|
## Installation
|
|
|
|
|
|
|
|
### libfuse
|
|
|
|
|
|
|
|
wget -O fuse-3.1.1.tar.gz https://github.com/libfuse/libfuse/archive/fuse-3.1.1.tar.gz
|
|
|
|
tar -xf fuse-3.1.1.tar.gz
|
|
|
|
cd libfuse-fuse-3.1.1
|
|
|
|
./makeconf.sh
|
|
|
|
./configure
|
|
|
|
make
|
|
|
|
sudo make install
|
|
|
|
|
|
|
|
### libwebsockets
|
|
|
|
|
|
|
|
wget -O libwebsockets-3.1.0.tar.gz https://github.com/warmcat/libwebsockets/archive/v3.1.0.tar.gz
|
|
|
|
tar -xf libwebsockets-3.1.0.tar.gz
|
|
|
|
cd libwebsockets-3.1.0
|
|
|
|
mkdir .build
|
|
|
|
cd .build
|
|
|
|
cmake ..
|
|
|
|
make
|
|
|
|
sudo make install
|
|
|
|
|
|
|
|
### Jansson
|
|
|
|
|
|
|
|
On many systems, libjansson can installed via apt:
|
|
|
|
|
|
|
|
sudo apt install libjansson-dev
|
|
|
|
|
|
|
|
Otherwise, it can be installed from source:
|
|
|
|
|
|
|
|
wget -O libjansson-2.12.tar.gz https://github.com/akheron/jansson/archive/v2.12.tar.gz
|
|
|
|
tar -xf libjansson-2.12.tar.gz
|
|
|
|
cd jansson-2.12
|
|
|
|
mkdir .build
|
|
|
|
cd .build
|
|
|
|
cmake ..
|
|
|
|
make
|
|
|
|
sudo make install
|
|
|
|
|
|
|
|
### GoogleTest
|
|
|
|
|
|
|
|
Installation of GoogleTest is optional fuse-wsfs library, but required to compile tests.
|
|
|
|
|
|
|
|
wget -O gtest-1.8.1.tar.gz https://github.com/google/googletest/archive/release-1.8.1.tar.gz
|
|
|
|
tar -xf gtest-1.8.1.tar.gz
|
|
|
|
cd googletest-release-1.8.1
|
|
|
|
mkdir .build
|
|
|
|
cd .build
|
|
|
|
cmake ..
|
|
|
|
make
|
|
|
|
sudo make install
|
|
|
|
|
2019-01-27 11:32:02 +00:00
|
|
|
|