Giter VIP home page Giter VIP logo

asyncfatfs's People

Contributors

dbeulen avatar thenickdude avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

asyncfatfs's Issues

Multiple fopen() on same file

I was wondering if it is safe to do multiple fopen() calls on the same file. My use case is to have one process writing to the end of the file while another process reads from earlier sections of the file. Would doing this break anything in afatfs?

Thanks!

Timeout an ongoing read / write.

Hello there!

First, I'd like to thank you for this amazing library! It's super helpful!

When sdcard_{writeBlock,readBlock} is called and the operation starts, I get the current timestamp. When sdcard_poll is called I check if the operation has finished in order to call the callbacks, but let's suppose it's taking way too long and something has gone wrong in the layers below the file system (sd card driver or something like that).

In that case, is there a way to tell the filesystem that the operation has failed? As far as I've looked throughout the code base, there is no way, because there's no error callback... What would happen if I were to cancel the operation and mark the SDCard as ready again? I'm assuming I'd lose data...

In that scenario, if I assume the operation is taking too long, is my only option restarting it?

Also, I'm not expecting this code path to be executed, but I'm used to check for timeout in all kinds of operations... just to try and be safe.

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.