linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* BTRFS support per-subvolume compression, isn't it?
@ 2018-08-27 21:05 Eugene Bright
  2018-08-28 11:10 ` Austin S. Hemmelgarn
  0 siblings, 1 reply; 2+ messages in thread
From: Eugene Bright @ 2018-08-27 21:05 UTC (permalink / raw)
  To: linux-btrfs

[-- Attachment #1: Type: text/plain, Size: 449 bytes --]

Greetings!

BTRFS wiki says there is no per-subvolume compression option [1].

At the same time next command allow me to set properties per-subvolume:
        btrfs property set /volume compression zstd

Corresponding get command shows distinct properties for every subvolume.
Should wiki be updated?

-- 
King regards
Eugene Bright
IT engineer

--------
[1] https://btrfs.wiki.kernel.org/index.php/Compression#Can_I_set_compression_per-subvolume.3F

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* Re: BTRFS support per-subvolume compression, isn't it?
  2018-08-27 21:05 BTRFS support per-subvolume compression, isn't it? Eugene Bright
@ 2018-08-28 11:10 ` Austin S. Hemmelgarn
  0 siblings, 0 replies; 2+ messages in thread
From: Austin S. Hemmelgarn @ 2018-08-28 11:10 UTC (permalink / raw)
  To: Eugene Bright, linux-btrfs

On 2018-08-27 17:05, Eugene Bright wrote:
> Greetings!
> 
> BTRFS wiki says there is no per-subvolume compression option [1].
> 
> At the same time next command allow me to set properties per-subvolume:
>          btrfs property set /volume compression zstd
> 
> Corresponding get command shows distinct properties for every subvolume.
> Should wiki be updated?
> 
The wiki should be updated, but it's not technically wrong.

What the wiki is talking about is per-subvolume mount options to control 
compression (so, mounting individual subvolumes from the same volume 
with different `compress=` or `compress-force=` mount options), which is 
not currently supported.

You are correct though that properties can be used to achieve a similar 
result (compressing differently for different subvolumes.

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

end of thread, other threads:[~2018-08-28 15:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-27 21:05 BTRFS support per-subvolume compression, isn't it? Eugene Bright
2018-08-28 11:10 ` Austin S. Hemmelgarn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).