Comments (4)
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.
cool
from dwarfs.
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.
Fixed in v0.7.3.
from dwarfs.
Related Issues (20)
- Big memory usage in debian vs ubuntu when mounting a 120 dwarfs HOT 12
- dwarfs is difficult to build without the git repository (when not using the source tarball) HOT 11
- locale fallback does not work properly HOT 11
- Resize progress bar when terminal window is resized HOT 3
- xattrs support HOT 1
- Optimize segmenting by skipping zero filled blocks? HOT 49
- fusermount3: mounting over filesystem type 0x7366746e is forbidden HOT 5
- Signal 7 (SIGBUS) during extraction HOT 4
- recompress does not change the compression algorithm HOT 1
- Unable to do anything with image; truncated section header HOT 5
- Add support for Ubuntu HOT 2
- Version 0.7 added a spamming permission error. HOT 9
- Add integrity check from dwarfsextract to mount as well HOT 8
- UIDs/GIDs truncated to 16 bits HOT 6
- Command line option (for windows) to set a folder where writable files go [] HOT 10
- how do I use you software? HOT 3
- Consider supporting zstd dictionaries HOT 4
- [Feature Request] Create DWARFS Archive From TAR/STDIN HOT 6
- Trouble compiling: 'utf8cpp/utf8.h' file not found HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dwarfs.