linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sander <sander@humilis.net>
To: Hadmut Danisch <hadmut@danisch.de>
Cc: Chester <somethingsome2000@gmail.com>, linux-btrfs@vger.kernel.org
Subject: Re: Setting options permanently?
Date: Mon, 30 Jan 2012 08:18:13 +0100	[thread overview]
Message-ID: <20120130071813.GA12780@attic.humilis.net> (raw)
In-Reply-To: <4F234616.6020407@danisch.de>

Hadmut Danisch wrote (ao):
> I currently don't see how to repair this afterwards without removing the
> uncompressed files and writing new ones, which on the other hand spoils
> hte memory saving effect of using snapshots instead of copies.

As also mentioned by Li Zefan, you can use defrag. But this will indeed
not work nicely with snapshots. And you need more free space than the
largest file on the filesystem.

find / -xdev -execdir btrfs filesystem defrag -czlib {} +

	Sander

-- 
Humilis IT Services and Solutions
http://www.humilis.net

  parent reply	other threads:[~2012-01-30  7:18 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-27 15:03 Setting options permanently? Hadmut Danisch
2012-01-27 23:20 ` Chester
2012-01-28  0:49   ` Hadmut Danisch
2012-01-28  3:32     ` Duncan
2012-01-28  6:05       ` Ben Klein
2012-01-28  8:23         ` Roman Mamedov
2012-01-28  9:24           ` Ben Klein
2012-01-28 10:55           ` Duncan
2012-01-30  5:57       ` Li Zefan
2012-01-28 12:07     ` Fajar A. Nugraha
2012-01-30  7:18     ` Sander [this message]
2012-01-30  7:49 ` Li Zefan

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=20120130071813.GA12780@attic.humilis.net \
    --to=sander@humilis.net \
    --cc=hadmut@danisch.de \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=somethingsome2000@gmail.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 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).