From: Yan Zheng <yanzheng@21cn.com>
To: Ravi Pinjala <ravi@p-static.net>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: Mounting multiple regular files as a filesystem
Date: Mon, 15 Jun 2009 15:48:56 +0800 [thread overview]
Message-ID: <3d0408630906150048r4f93a02cud633f78da46f0b02@mail.gmail.com> (raw)
In-Reply-To: <4A35DDD6.9020307@p-static.net>
2009/6/15 Ravi Pinjala <ravi@p-static.net>:
> 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
>
>
Please setup loop devices for the image files manually. In this case,
'mount -o loop' can't do it for you.
For example:
mkfs.btrfs img1 img2 img3 img4
for i in `seq 1 4`; do losetup /dev/loop$ img$i; done
btrfsctl -a
mount -t btrfs /dev/loop1 /mnt/test
See below for more information:
http://btrfs.wiki.kernel.org/index.php/Using_Btrfs_with_Multiple_Devices
Yan, Zheng
prev parent reply other threads:[~2009-06-15 7:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-15 5:36 Mounting multiple regular files as a filesystem Ravi Pinjala
2009-06-15 7:48 ` Yan Zheng [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=3d0408630906150048r4f93a02cud633f78da46f0b02@mail.gmail.com \
--to=yanzheng@21cn.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=ravi@p-static.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