linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Ivan Labáth" <ilabath@gmail.com>
To: linux-btrfs@vger.kernel.org
Subject: raw fs backup/copy
Date: Thu, 06 Jan 2011 17:36:48 +0100	[thread overview]
Message-ID: <4D25EFA0.9010809@gmail.com> (raw)

Is there a reason one can not mount a btrfs and it's byte-for-byte
copy in parallel, or is the driver just acting silly?

Mini example:
# dd if=/dev/zero of=fs1 bs=1 count=1 seek=$((1024*1024*1024-1))
# mkfs.btrfs fs1
# cp --sparse=always fs1 fs2
# mkdir 1 2
# mount fs1 1 -o loop
# mount fs2 2 -o loop
# touch 1/1
# ls 2
1
# cat /proc/mounts
/dev/loop0 /tmp/test/1 btrfs rw,relatime 0 0
/dev/loop1 /tmp/test/2 btrfs rw,relatime 0 0

--
ivan

             reply	other threads:[~2011-01-06 16:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-06 16:36 Ivan Labáth [this message]
     [not found] ` <20110106183507.GA19633@carfax.org.uk>
2011-01-06 19:26   ` raw fs backup/copy Ivan Labáth

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=4D25EFA0.9010809@gmail.com \
    --to=ilabath@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).