-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
I'd like an option to use compsize to find files with extents matching some criteria and list them.
compsize --find could have the following matches:
- compression type; e.g zlib, lzo, zstd
- extents larger than X
- extends smaller than X
- average extent size smaller than X
- average extent size larger than X
- has at least X shared/deduped extents/blocks
- has no shared extents
- has slack larger than X
- has more than X extents
- has fewer than X extents
- files larger than X bytes (kiB, MiB, GiB, ...)
- files smaller than X bytes
- files that are inlined in metadata
- files that are not inlined in metadata
- files with more than X non-continous extents
It should be possible to combine several matches.
The output can be a table with the path/filename + the chosen matches.
A possibly to sort the output would be great, or have an output format that can be piped to sort.
My initial use-case is to find highly fragmented files so that I can manually defrag them. But also to analyse my files and how they are to determine if I should do some action on them.
Metadata
Metadata
Assignees
Labels
No labels