Comments (3)
With current restrictions, I don't think it makes sense to make compsize a library.
The most cumbersome part is requiring root. A library that's usable only by root-only programs is not that nice, and LD_PRELOAD plays badly with sudo.
Then, if you're interested about space saved, it's inter-file sharing that gives the most. For that, even compsize itself is hardly adequate — I pondered writing something akin to ncdu but so far, I don't have enough tuits.
Compression data should be properly exposed kernel side first.
from compsize.
Not that I disagree much, but...
Didn't think of the sudo aspect, though for my use-case it seems easy enough to just start a shell first with sudo.
I wouldn't think the inter-file sharing is relevant to my use-case (standard desktop install), and even if it was you'd have a massive visualization issue anyway.
And having it properly exposed by the kernel sure would be best, but how many years have we been waiting for that? Will that even happen in the next 10 years?
Right now basically anyone who needs to save space needs to run e.g. ncdu and in parallel try to dig into the details with compsize. Even with all the restrictions, ANYTHING would be a vast improvement in the current situation.
At least that's my point of view on it.
from compsize.
I can only add my idea of how to provide this: add it to (a fork of) ncdu, with a limited way that allows the user to provide a relative and absolute limit of how much of a file needs to be referenced from another (think mp3 files with changed ID3 tags) to treat them similar to hardlinks (maybe adding the unique part of the clone when seeing the size of it, or maybe just letting it fall under the table).
Even if you'd have to adapt ncdu to drop it's partial recomputation, and pretty much just use it's display/navigation layer, that'd be awesome.
from compsize.
Related Issues (20)
- compsize shows 1,6gb uncompressed despite compress-force=lzo is set on the btrfs fs HOT 9
- Exclusive / shared usage HOT 3
- wrong size: 1036 bytes file reported as 140M HOT 10
- Show sparse usage. HOT 1
- Change the name to btrfs-compsize HOT 4
- Error messages with Kernel 5.8.8 HOT 13
- compsize should also show dedupe% and total% not only comp% HOT 6
- Regular extent's header not 53 bytes (0) long?!? HOT 1
- compsize could be more user-friendly (from an enduser perspective) HOT 2
- SEARCH_V2 buffer is too big, slows compsize down HOT 8
- Support DESTDIR in Makefile
- Issues reported by static analysis HOT 1
- Option to always shows count of extents
- Makefile: Ensure that MAN_I directory exists
- Setuid root? HOT 3
- Add option to set fixed output format for size or at least raw bytes HOT 1
- Option to print each file HOT 4
- Feature request: compsize --find HOT 3
- Is the extent number accurate for telling file's fragmentation for compressed files? HOT 17
- Crazy values HOT 4
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 compsize.