Comments (4)
Clarification: The ultimate feature would be something like the venerable https://www.freshports.org/sysutils/fusefs-gunzip/ (which disappeared from the face of Earth).
from fuse-archive.
Where does the name in the mount point come from? It does not seem to be in the archive (or maybe gzip just does not output it?):
The gzip file format can optionally contain the original file name (look for "FNAME" in the https://datatracker.ietf.org/doc/html/rfc1952 gzip specification). If a .gz file has it, fuse-archive will use it. Otherwise libarchive will fall back to "data" as a default: https://github.com/libarchive/libarchive/blob/6d56dfd6ef13625561da83c605d2a12cb146088c/libarchive/archive_read_support_format_raw.c#L119
Maybe try gzip -l com.txt.gz
with the --name
or --no-name
flags. Maybe it will show a difference.
First ls operation on the mount takes ages - time comparable to decompressing the whole archive, presumably because it looks for end of first gzip stream to see if another gzip stream might follow. Is this intentional? Would you be willing to add an option to treat gz files as one-item archives and thus make initial listing fast?
It is intentional to decompress the whole thing. Not to see if another gzip stream might follow, but to determine the decompressed size (which fuse-archive would need to show if we did a 'ls -l
on the mount point).
Would you be interested in an option which uses the original file name without .gz suffix for names in the mount?
I'm not super-excited about adding that option. For your original use case, I'd probably use symlinks.
And finally, assuming answers above were mostly "yes", are you interested in more complete feature request description to mount directories and transparently decompress files in them? I could write it down if it is not waste of time.
Sorry, but the answers are mostly "no".
from fuse-archive.
Thank you for your time, it all makes sense. Have a great day!
from fuse-archive.
Hi @pspacek
Maybe You can use fuse-overlayfs
, and so join several mounted dir at unique target dir.
I hope that I could helped You.
from fuse-archive.
Related Issues (15)
- Security Policy violation Binary Artifacts HOT 2
- Feature request: mount directories containing archive files HOT 4
- Unable to compile it on ubuntu 22.04 HOT 1
- fuse-archive reports the number of blocks taken by each file as zero
- Nonstandard-C++ in src/main.cc HOT 1
- migrate to fuse3 HOT 1
- Empty folders not mounted HOT 2
- Hard links not mounted HOT 1
- fuse-archive silently fails for paths beginning with './'
- Discussion of performance HOT 12
- Cannot Mount Archive Generated From 7-Zip-ZSTD HOT 4
- No way to get fuse-archive version
- Support for indexed tar.xz file from pixz tool
- C implementation HOT 3
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 fuse-archive.