public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Martin Steigerwald <martin@lichtvoll.de>
To: linux-btrfs@vger.kernel.org, Forza <forza@tnonline.net>
Subject: Re: Settings compression for a filesystem
Date: Thu, 04 Nov 2021 18:23:42 +0100	[thread overview]
Message-ID: <4290595.HUiMQM4q2P@ananda> (raw)
In-Reply-To: <8479126f-c24d-4f2a-2ceb-2d71f063a294@tnonline.net>

Forza - 04.11.21, 16:14:31 CET:
> You can use `btrfs property set <file> compression zstd`[1] on
> directories and files. This enables compression for any new writes to
> those directories and files. If you set compression on a directory,
> any new files and directories will inherit the property, while
> existing files and directories won't.
> 
> After mounting your disks you can use find to set compression
> recursively:
> 
> # find /media/btrfs/ -exec btrfs prop set {} compression zstd \;

So it just inherits to the newly created files and directories in that 
directory directly.

Ah, I see… then in case I set it on the root inode of a new empty 
filesystem it just works, otherwise… I'd need to use find unless I choose 
to add an entry for each of the disks.

Thanks,
-- 
Martin



      reply	other threads:[~2021-11-04 17:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-04 14:56 Settings compression for a filesystem Martin Steigerwald
2021-11-04 15:14 ` Forza
2021-11-04 17:23   ` Martin Steigerwald [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4290595.HUiMQM4q2P@ananda \
    --to=martin@lichtvoll.de \
    --cc=forza@tnonline.net \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox