public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* Settings compression for a filesystem
@ 2021-11-04 14:56 Martin Steigerwald
  2021-11-04 15:14 ` Forza
  0 siblings, 1 reply; 3+ messages in thread
From: Martin Steigerwald @ 2021-11-04 14:56 UTC (permalink / raw)
  To: linux-btrfs

Hi!

I do have a bunch of BTRFS on LUKS backup disks. Plasma desktop mounts 
them unter /media… however, it does not mount with compression enabled. 
I do have some older backup disks which are in /etc/fstab including 
mount option "compress=zstd".

Is there any way to tell BTRFS to always use a certain compression 
algorithm for all newly written files (and of course existing files which 
use compression) without adding an entry in fstab for each disk?

I thought about

btrfs property set MOUNTPOINT compression zstd

but that sets the property just on the root inode of the mounted 
filesystem. Does it propagate? The manpage does not seem to have any 
information on that.

If not, well then I add the entries to fstab.

Thanks,
-- 
Martin



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-11-04 17:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox