S
S
syxoi2016-07-04 11:20:39
linux
syxoi, 2016-07-04 11:20:39

How to find out the real size of a file on disk?

How to find out the real size of a file that is on the file system and compressed (btrfs zlib) ?. du shows how much the file weighs in the end, when the FS uncompressed it and "give it away". du --apparent-size doesn't show this info..

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lynn "Coffee Man", 2016-07-04
@syxoi

No way.
https://btrfs.wiki.kernel.org/index.php/Compressio...
> There is a patch adding support fort that, currently it's not merged. You can kind of guess at its compressed size by comparing the output from the "df" command before and after writing a file, if this is available to you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question