Coder Social home page Coder Social logo

franken-fs's Introduction

Franken-FS

Network block device sewed up from individual organs. Filthy experiment.

It's almost identical to NBD, except it's modular.

Components:

  • netcat (GNU version) -- to shift data across the internet.
  • openssl -- to make transmitted data resistant to the bad touch, that can happen in the vasts of the network.
  • pblock (pblock-bd, pblock-srv) -- to forge sequential stream of data into random access blob.
  • pgspawn + bash + socat -- to glue layers together.

What about speed?

Performance is not exactly stunning. (Benhmark done on Intel Atom processor, eMMC storage.)

$ dd if=/dev/zero of=/dev/nbd0 bs=50M count=1 oflag=direct
1+0 records in
1+0 records out
52428800 bytes (52 MB, 50 MiB) copied, 19.4377 s, 2.7 MB/s

Is this production ready?

Bro, of course not! Mainly I've got little trust for pblock part of the stack.

TODOs:

  • Openssl is misconfigured. Certificates are self-signed, server accepts all connections, and client will connect to anything.
  • I'm searching for something more robust than openssl. I was unable to make it work with external transport, like netcat. Openssl just insists on creating it's own server using TCP/IP stack. No way to force it to use existing socket.

Quick guide

To setup example connection, run setup script

./setup.sh

Before starting client, you need nbd kernel module loaded:

modprobe nbd

Running server is just easy. Running server is just hard and it requires root.

If you need to tweak settings, you have to modify pgspawn scripts. Unfortunately.

Licensing

Pls help me with that. I'm no lawyer. I wanna the code MIT, but can i do this? Some parts are GPL-ish.

franken-fs's People

Contributors

suprasummus avatar

Watchers

 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.