From: Martin Steigerwald <martin@lichtvoll.de>
To: linux-btrfs@vger.kernel.org, Qu Wenruo <quwenruo.btrfs@gmx.com>
Subject: Re: Correct way to clear a free space cache file invalid error
Date: Mon, 16 Jan 2023 16:30:22 +0100 [thread overview]
Message-ID: <1842057.tdWV9SEqCh@lichtvoll.de> (raw)
In-Reply-To: <bddd724d-649b-aa3b-9a97-f415fe7b6afd@gmx.com>
Qu Wenruo - 16.01.23, 11:41:07 CET:
> On 2023/1/16 18:22, Martin Steigerwald wrote:
[…]
> > So what is the correct way to clear that error?
>
> "btrfs check --clear-space-cache v1 <device>".
>
> Of course you need to unmount the fs in the first place.
>
> The clear_cache mount option only clears the old cache of touched bgs.
> If the bg is not touched during the runtime, it won't be modified.
>
> Or, you can go v2 cache, which would drop the v1 cache at the first
> mount.
Thanks. I went to v2 cache during rebooting by putting the mount options
for that in /etc/fstab temporarily. This appears to have worked.
Ciao,
--
Martin
prev parent reply other threads:[~2023-01-16 15:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-16 10:22 Correct way to clear a free space cache file invalid error Martin Steigerwald
2023-01-16 10:41 ` Qu Wenruo
2023-01-16 14:07 ` [PATCH] btrfs-progs: docs: improve space cache documentation Christoph Anton Mitterer
2023-01-16 15:24 ` Christoph Anton Mitterer
2023-01-16 15:30 ` 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=1842057.tdWV9SEqCh@lichtvoll.de \
--to=martin@lichtvoll.de \
--cc=linux-btrfs@vger.kernel.org \
--cc=quwenruo.btrfs@gmx.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.