Giter VIP home page Giter VIP logo

phlegyas's Introduction

Plan 9 Filesystem Protocol, as implemented in Clojure.

Build Status

[phlegyas "0.1.8"]

The vast majority of the protocol-level documentation was sourced from the wonderful Plan 9 from User Space project.

I have copied the test resources from droyo's styx package, credit due for making it available.

Run lein test to verify things work as they should. Currently, 100% of the provided framedumps are successfully handled, hopefully indicating that this is fully up to spec.

Note the field names in types.clj. The assemble-packet function will take a map of these and create a byte-array for you. disassemble-packet will do the reverse.

Notes

An example server is available (see the phlegyas.server namespace).

Client routines are also available (see the phlegyas.client namespace).

For testing, build plan9port (will require compilers & development headers):

git clone https://github.com/9fans/plan9port.git && cd plan9port && ./INSTALL

Or, alternatively, if you have Docker installed, there is a project that will do this for you inside a container, so you don't have to touch your base system.

Then, run the built 9P FUSE client, e.g.:

9pfuse -D 'tcp!localhost!10001' mountpoint

The example VFS layer will create a single filesystem for attaching, and some example files within, with both dynamic and static content (see the phlegyas.vfs namespace).

TODO

Authentication is not yet supported. The example VFS is rudimentary and leaves room for improvement.

phlegyas's People

Contributors

dspearson avatar zuccon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

phlegyas's Issues

Default new file VFS behaviour is incorrect.

The phlegyas.vfs/example-read-write-function-for-files is incomplete and results in faulty data being written, and hangs the 9P filesystem when editing in emacs (as an example).

The behaviour should be replaced with something more battle-tested.

Default new directory VFS behaviour is incorrect.

When testing mkdir on a new 9p filesystem, the mode on the directory is incorrect.

2022-04-05T10:52:29.811Z enki DEBUG [enki.ninep:113] - Got frame: {:frame :Tcreate, :tag 1, :fid 1, :name "x", :perm -2147483155, :iomode 0}
2022-04-05T10:52:29.811Z enki DEBUG [enki.ninep:115] - Putting frame: {:frame :Rcreate, :iounit 8168, :name "x", :qid-type 0, :qid-path 5, :tag 1, :perm -2147483155, :iomode 0, :qid-vers 0, :fid 1}

Ideally the default VFS function should support regular read/write/insert etc. on directories.

Memory is leaked.

Something somewhere is holding references to data and the heap size continues to grow on every invocation.

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.