Giter Club home page Giter Club logo

ya-vm-file-server's Introduction

ya-vm-file-server

Cross-platform 9p file server implemented in Rust/Tokio.

The work is based on:

https://github.com/pfpacket/rust-9p

Author of original implementation: Ryo Munakata

why separate project

We have to fork this library to enable cross-platform capabilities of p9 server. Original implementation worked only of Linux filesystem.

  • Emulating unix attributes
  • Maximum separation between server filesystem and client filesystem
  • Similar behavior when served on Linux and Windows machine.

Build

To compile only library part:

cargo build

To compile binary:

cargo build --bin ya-vm-file-server --features="build-binary debug-msg"

Testing

Build docker:

docker build . -t ya-vm-file-server

Running docker tests

docker-compose up

Integration tests

Tests are half-automatic. First you need to prepare an environment:

  1. Launch 9p server:

    RUST_LOG=debug cargo run --features="build-binary" -- --mount-point tests/9p_mnt_point
    
  2. On other shell mount to the server:

    cd tests
    sudo mount -t 9p -o version=9p2000.L,trans=tcp,debug=0x04,port=7878,uname=testuser 127.0.0.1 ./mnt_tests
    
  3. Launch tests using nightly build:

    cargo +nightly test
    

You should be able to see logging on the server side while tests are running.

Licence

Keeping original implementation licence BSD-3

ya-vm-file-server's People

Contributors

scx1332 avatar szymek156 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.