linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephane Chazelas <stephane.chazelas@gmail.com>
To: "Fajar A. Nugraha" <list@fajar.net>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: cloning single-device btrfs file system onto multi-device one
Date: Wed, 30 Mar 2011 12:58:57 +0100	[thread overview]
Message-ID: <chaz20110330115857.GA1577@seebyte.com> (raw)
In-Reply-To: <chaz20110328132403.GB18131@seebyte.com>

2011-03-28 14:24:03 +0100, Stephane Chazelas:
> 2011-03-23 12:13:45 +0700, Fajar A. Nugraha:
> > On Mon, Mar 21, 2011 at 11:24 PM, Stephane Chazelas
> > <stephane.chazelas@gmail.com> wrote:
> > > AFAICT, compression is enabled at mount time and would
> > > only apply to newly created files. Is there a way to compress
> > > files already in a btrfs filesystem?
> > 
> > You need to select the files manually (not possible to select a
> > directory), but yes, it's possible using "btrfs filesystem defragment
> > -c"
> [...]
> 
> Thanks. However I find that for files that have snapshots, it
> ends up increasing disk usage instead of reducing it (size of
> the file + size of the compressed file, instead of size of the
> file).
> 
> If I do the btrfs fi de on both the volume and its snapshot, I
> end up with some benefit only if the compression ratio is over
> 2 (and with more snapshots, there's little chance of getting any
> benefit at all). Also, with dozens of snapshots on a 4TB volume,
> it's likely to take weeks to do.
> 
> Is there a way around that?
[...]

OK, sorry. I can see now that it's a FAQ. So the answer to my
question would be "no"...

-- 
Stephane

  reply	other threads:[~2011-03-30 11:58 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-21 16:24 cloning single-device btrfs file system onto multi-device one Stephane Chazelas
2011-03-22  9:22 ` Stephane Chazelas
2011-03-23  0:06   ` cwillu
2011-03-28 13:17     ` Stephane Chazelas
2011-04-06  5:45       ` Evert Vorster
2011-04-06  6:30         ` Helmut Hullen
2011-04-06  6:57       ` Helmut Hullen
2011-04-06  8:25       ` Arne Jansen
2011-04-06 12:05         ` Stephane Chazelas
2011-04-06 13:43           ` Arne Jansen
2011-04-06 11:57       ` Stephane Chazelas
2011-03-23  5:13 ` Fajar A. Nugraha
2011-03-28 13:24   ` Stephane Chazelas
2011-03-30 11:58     ` Stephane Chazelas [this message]
2011-04-17 15:12 ` Hubert Kario

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=chaz20110330115857.GA1577@seebyte.com \
    --to=stephane.chazelas@gmail.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=list@fajar.net \
    /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).