From: Ravi Pinjala <ravi@p-static.net>
To: linux-btrfs@vger.kernel.org
Subject: Mounting multiple regular files as a filesystem
Date: Mon, 15 Jun 2009 00:36:22 -0500 [thread overview]
Message-ID: <4A35DDD6.9020307@p-static.net> (raw)
I'm trying to create a multi-device filesystem on top of regular files
(not actual disks), and mount that to a loopback device. For a
filesystem created on a single file, it works fine, but for a filesystem
across multiple files, it doesn't.
dd if=/dev/zero of=img1 bs=4096 count=65536
dd if=/dev/zero of=img2 bs=4096 count=65536
dd if=/dev/zero of=img3 bs=4096 count=65536
dd if=/dev/zero of=img4 bs=4096 count=65536
mkfs.btrfs img1
mount -o loop -t btrfs img1 /mnt/test # works
mkfs.btrfs img1 img2 img3 img4
mount -o loop -t btrfs img1 /mnt/test # fails
When I try to mount with multiple files, it also prints a message to syslog:
Jun 15 00:32:10 3vil device fsid a147d6b950f66dca-3e2e7f52011c93b0 devid
4 transid 9 /dev/loop/0
Jun 15 00:32:10 3vil btrfs: failed to read chunk tree on loop0
Jun 15 00:32:10 3vil btrfs: open_ctree failed
Am I doing something wrong, or is this use case broken right now?
--Ravi
next reply other threads:[~2009-06-15 5:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-15 5:36 Ravi Pinjala [this message]
2009-06-15 7:48 ` Mounting multiple regular files as a filesystem Yan Zheng
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=4A35DDD6.9020307@p-static.net \
--to=ravi@p-static.net \
--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