From: "Richard W.M. Jones" <rjones@redhat.com>
To: Andreas Dilger <adilger@dilger.ca>
Cc: linux-ext4@vger.kernel.org
Subject: Re: Create ext2 filesystem from a directory
Date: Wed, 20 Feb 2019 07:57:36 +0000 [thread overview]
Message-ID: <20190220075736.GE12500@redhat.com> (raw)
In-Reply-To: <A7D7D6A2-E789-4175-9ABC-E35774D5DA2F@dilger.ca>
On Tue, Feb 19, 2019 at 10:31:24PM -0800, Andreas Dilger wrote:
> On Feb 19, 2019, at 12:03 AM, Richard W.M. Jones <rjones@redhat.com> wrote:
> >
> >
> > This might interest/disgust/shock/scare(?!) people on this list:
> >
> > $ time ./nbdkit --filter=partition -U - linuxdisk . partition=1 --run 'qemu-img convert $nbd /var/tmp/ext2fs.img'
> >
> > real 0m1.314s
> > user 0m0.424s
> > sys 0m0.889s
> >
> > $ ls -lh /var/tmp/ext2fs.img
> > -rw-r--r--. 1 rjones rjones 351M Feb 19 07:44 /var/tmp/ext2fs.img
> >
> > Code here:
> >
> > https://github.com/rwmjones/nbdkit/commit/6e7908c828e60f082d84d866070fe8406e6f2b04
>
> How does this compare to "mke2fs -d <source_dir>"?
Wow, good question. I was completely unaware of this option until
now, but it'll make the implementation massively simpler. (We still
need the linuxdisk plugin.)
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine. Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/
prev parent reply other threads:[~2019-02-20 7:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-19 8:03 Create ext2 filesystem from a directory Richard W.M. Jones
2019-02-20 0:44 ` Theodore Y. Ts'o
2019-02-20 0:55 ` Richard W.M. Jones
2019-02-20 6:31 ` Andreas Dilger
2019-02-20 7:57 ` Richard W.M. Jones [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=20190220075736.GE12500@redhat.com \
--to=rjones@redhat.com \
--cc=adilger@dilger.ca \
--cc=linux-ext4@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.