Giter VIP home page Giter VIP logo

Comments (4)

mhx avatar mhx commented on June 1, 2024 1

That's a very fair point.

The current behaviour of simply ruling out forward compatibility upon any change that could make an older binary fall over was just out of simplicity.

Maybe its because of the new metadata method?

That and the new compression algo. The metadata change is in fact not forward-compatible because older Linux binaries wouldn't be able to properly handle images containing symbolic links created on Windows.

In any case, going forward I'm going to adopt "feature sets". As long as newer binaries create images using features that are a subset of the feature set provided by an older binary, the older binary will be able to load them.

from dwarfs.

adminx01 avatar adminx01 commented on June 1, 2024

cool

from dwarfs.

mhx avatar mhx commented on June 1, 2024

Okay, quick update on this one. If anyone thinks any of this is a bad idea, please let me know :)

I'm planning to push out a 0.7.3 release soonβ„’. The only differences relative to 0.7.2 will be that it's going to be a lot more relaxed about section types and compression types it doesn't know, and that it will understand the concept of "features" with an initially empty feature set.

Being more relaxed about section / compression types means that 0.7.3 and later will be able to read images produced by newer versions of mkdwarfs as long as there's no change that requires a file system version increment. For example, the 0.8.x series will introduce a new "history" section type that is irrelevant for accessing the contents stored in the file system and can safely be ignored. 0.8.x will also introduce FLAC compression, but as long as you're not actually accessing files in FLAC compressed blocks, 0.7.3 will be able to mount and use a 0.8.x image just fine. If you actually access data in a block using an unsupported compression, you'll get an I/O error. I think this should make for a much smoother upgrade experience. As long as you're not immediately using all features of a new release, you'll still be able to use new file system images with older versions.

Even the 0.8.x series will very likely not be adding any features to the feature set. These are reserved for cases where new (optional) features would make it impossible for an older release to reliably read a new file system image. For example, if a new release would add further encoding/decoding on a per-file basis (e.g. using something like brunsli), this would become a "feature" and DwarFS versions not supporting this feature would reject to load an image that was actively using this feature. Again, this means that "you don't pay for what you don't use" and as long as you don't use the feature, older binaries will still happily mount new images.

from dwarfs.

mhx avatar mhx commented on June 1, 2024

Fixed in v0.7.3.

from dwarfs.

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.