Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 2
    If I use filesystem defragment and continue writing to the file, the parts I write after that point will not be compressed, right? filesystem defragment compresses existing parts, but not future parts, while chattr +c compresses future parts, but not existing parts? Commented Jan 25, 2020 at 18:30
  • Afaik defrag will enable forced compression on the file, I don't know if it does that immediately or after the file has been defragmented. Intuition tells me it's the former. Commented Jan 27, 2020 at 8:58
  • A guess, which I woundn't mind getting confirmed - compressing a set of files that are already in a previous snapshot is likely to increase disk space, since new versions will need to be created that cant share extents with the ones in the snapshot. Yes? Commented Jan 12 at 9:42
  • That is correct. A defrag always implies rewriting the file entirely and that unshares its extents. Commented Jan 18 at 19:23