linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Austin S. Hemmelgarn" <ahferroin7@gmail.com>
To: Imran Geriskovan <imran.geriskovan@gmail.com>,
	Lukas Pirl <btrfs@lukas-pirl.de>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: zstd compression
Date: Wed, 15 Nov 2017 07:57:06 -0500	[thread overview]
Message-ID: <361d92ee-9aee-35e1-024d-45ec5b79902b@gmail.com> (raw)
In-Reply-To: <CAK5rZE7rLToV7t+6pZhTbN2+JQj=W67Y5mESNhpaF0ehZzObOA@mail.gmail.com>

On 2017-11-15 05:35, Imran Geriskovan wrote:
> On 11/15/17, Lukas Pirl <btrfs@lukas-pirl.de> wrote:
>> you might be interested in the thread "Read before you deploy
>> btrfs + zstd"¹.
> 
> Thanks. I've read it. Bootloader is not an issue since /boot is on
> another uncompressed fs.
> 
> Let me make my question more generic:
> 
> Can there be any issues for switching mount time
> compressions options from one to another, in any order?
> (i.e none -> lzo -> zlib -> zstd -> none -> ...)
> 
> zstd is only a newcomer so my question applies to all
> combinations..
The 'compress' and 'compress-force' mount options only impact newly 
written data.  The compression used is stored with the metadata for the 
extents themselves, so any existing data on the volume will be read just 
fine with whatever compression method it was written with, while new 
data will be written with the specified compression method.

If you want to convert existing files, you can use the '-c' option to 
the defrag command to do so.

Aside from this, there is one other thing to keep in mind about zstd 
which I mentioned later in the above mentioned thread.  Most system 
recovery tools do not yet have a new enough version of the kernel and/or 
  btrfs-progs to be able to access BTRFS volumes with zstd compressed 
data or metadata, so you may need to roll your own recovery solution for 
the time being if you want to use zstd.

  reply	other threads:[~2017-11-15 12:57 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-15  8:51 zstd compression Imran Geriskovan
2017-11-15 10:09 ` Lukas Pirl
2017-11-15 10:35   ` Imran Geriskovan
2017-11-15 12:57     ` Austin S. Hemmelgarn [this message]
2017-11-15 21:31       ` Duncan
2017-11-16 12:30         ` Austin S. Hemmelgarn
2017-11-16 12:51           ` Imran Geriskovan
2017-11-16 13:43           ` Duncan
2017-11-16 16:32             ` Austin S. Hemmelgarn
2017-11-16 20:36               ` Timofey Titovets

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=361d92ee-9aee-35e1-024d-45ec5b79902b@gmail.com \
    --to=ahferroin7@gmail.com \
    --cc=btrfs@lukas-pirl.de \
    --cc=imran.geriskovan@gmail.com \
    --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;
as well as URLs for NNTP newsgroup(s).