←back to thread

The File Filesystem (2021)

(mgree.github.io)
346 points wegwerff | 3 comments | | HN request time: 0.651s | source
Show context
RetroTechie ◴[] No.40215710[source]
Useful enough that it should be an OS-level standard feature, imho.

Unix-like OSes allow mounting disk images to explore their contents. But there's many more file formats where exploring files-inside-files is useful. Compressed archives, for one. Some file managers support those, but (imho) application-level is not the optimal layer to put this functionality.

Could be implemented with a kind of driver-per-filetype.

replies(8): >>40215839 #>>40215919 #>>40215928 #>>40216709 #>>40217080 #>>40219626 #>>40225276 #>>40225726 #
frizlab ◴[] No.40215839[source]
Honest question: How is this useful? I don’t see any use-case where this would come in handy.
replies(5): >>40216331 #>>40217322 #>>40223951 #>>40225775 #>>40227818 #
1. crabbone ◴[] No.40225775[source]
We used this in Gitlab CI. Unfortunately, the only way they deal with artifacts is by putting them in Zip files. Cache between builds would thus be stored as a Zip file. However, fully extracting it before each build would sometimes take as much, if not more time than to just build fresh. Mounting a Zip file as a filesystem allows extracting entries on-demand, at the time a file access would've been made. This was a notable speedup in our compilation process.
replies(1): >>40236205 #
2. pizzafeelsright ◴[] No.40236205[source]
tar is what you're looking for, no?
replies(1): >>40250559 #
3. crabbone ◴[] No.40250559[source]
It was a while ago, and I haven't used Gitlab in a few years. Maybe they've added TAR as an option since, but Zip was the only option at that time.