GithubHelp home page GithubHelp logo

Add simulated disk Io about turmoil HOT 2 OPEN

mcches avatar mcches commented on June 24, 2024 2
Add simulated disk Io

from turmoil.

Comments (2)

battesonb avatar battesonb commented on June 24, 2024 1

I'd like to pick this up. I have a partially implemented proof-of-concept on my fork from some tinkering this weekend using an in-memory virtual file system. I see a few "trophies" for getting this fully implemented.

  1. Generic filesystem
    This is just a virtual filesystem over the generic parts of the API. The tokio tests can be grabbed and rewritten in turmoil style (example) -- although I'd suggest extra testing around the errors. There are some cases where this API bleeds into std and I don't really think there's a nice solution for that. For example the Metadata struct used by tokio is from std. In some cases we can use the std type, such as Path -- but it does have functions which won't work (like is_file).

  2. File system interjections
    Similar to the hold and repair methods, we'd need some way to inject errors into the file system. I'm not sure whether this is needed for the first implementation, but separating them would require a version bump. I'd suggest separating simply because of the surface area of the fs module. A big-bang PR might not be the way to go for good feedback.

  3. OS-specific implementations
    I currently have some of these just panic with the unimplemented!() macro, but a correct implementation would include these as well. For example, the different permission models across operating systems.

from turmoil.

mcches avatar mcches commented on June 24, 2024

For (2), I don't think we need a version bump since this would be additive. It's probably totally different. We'll want an io failure rate with the same rng behavior as net and then the ability to corrupt files and stuff like that.

from turmoil.

Related Issues (20)

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.