Coder Social home page Coder Social logo

Add Trim operation about gneiss HOT 2 CLOSED

componolit avatar componolit commented on May 23, 2024
Add Trim operation

from gneiss.

Comments (2)

jklmnn avatar jklmnn commented on May 23, 2024

Are trim request required to be acknowledged? Since they only tell the block device that it can discard a range of blocks. Since the server is not required to provide anything to the client it shouldn't be necessary to acknowledge the trim. Aside from this the sync shouldn't be needed to acknowledged either (as it is only a marker for the server and the client can enqueue further requests after the sync and be sure that anything before the sync will be executed).
If we have to acknowledge sync and trim request the "empty" implementation on Genode would become a bit more complicated since we have to insert fake acknowledges which will also not trigger the event handler.

from gneiss.

senier avatar senier commented on May 23, 2024

Trim is just a hint to the underlying component, i don't think it has to be acknowledged.

Regarding Sync: This operation actually takes offset and block range (cf. 3.51- SYNCHRONIZE CACHE (10) of Direct Access Block commands). We should make it a "normal" request again to support those scenarios.

Regarding missing platform support: When a primitive is unsupported on a platform in general, we should not fake it, but give the client a mechanism to detect it and cope with it. Idea: Add a supported() predicate (similar to ready()) which is a precondition to Enqueue() and is implemented by the platform. Before enqueuing a request, the component has to check whether its supported and take measures if not.

from gneiss.

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.