compression at file system level

245 views

Recently I learned that some file systems support compression for the entire drive/partition. I was curious to find out that my smartphone has compress\_algorithm=lz4 attribute in f2fs for the /data partition. So my question is how does it work? Am I really able to put more than 110GB of data on such a 110GB partition due to compression? What do I see in the space usage stats? How will it handle case if I need to read some big file while there is no free space to uncompress it?

In: 3

2 Answers

Anonymous 0 Comments

Yes, file system compression allows you to store more data on a partition by reducing the file size

However, the space usage stats may not accurately reflect the compressed file sizes

In case you need to read a big file without free space, it will be uncompressed on-the-fly for access.

You are viewing 1 out of 2 answers, click here to view all answers.