From: "Evgeny A. Marchenko" <xengine@mail.ru>
To: linux-btrfs@vger.kernel.org
Subject: Re: Question: Build btrfs filesystem from specific directory.
Date: Sat, 12 Jun 2010 06:33:11 +0400 [thread overview]
Message-ID: <201006120633.12043.xengine@mail.ru> (raw)
In-Reply-To: <AANLkTimbW5pNGsFxRZYRRjY0Ke-Wyb4aaBkUZgilVMlR@mail.gmail.com>
> I'm founding the solution to build btrfs filesystem image from
> specific directory.
> it's common concept at mobile build environment.
> e.g., ubifs and cramfs support this feature.
>
> In case of ubifs
> -r, -d, --root=DIR build file system from directory DIR
> In case of cramfs
> dirname root of the filesystem to be compressed
>
> But btrfs doesn't support it.
Maybe because btrfs is not a compressed read-only filesystem
> So does it have any plan to support this feature at btrfs?
You can create file-backed loop device, mount it and copy the directory
contents there. Than unmount the loop and voila - you have btrfs image
Regards, Evgeny Marchenko
next prev parent reply other threads:[~2010-06-12 2:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-12 2:20 Question: Build btrfs filesystem from specific directory Kyungmin Park
2010-06-12 2:33 ` Evgeny A. Marchenko [this message]
2010-06-12 4:47 ` Kyungmin Park
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=201006120633.12043.xengine@mail.ru \
--to=xengine@mail.ru \
--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).