All of lore.kernel.org
 help / color / mirror / Atom feed
* Create ext2 filesystem from a directory
@ 2019-02-19  8:03 Richard W.M. Jones
  2019-02-20  0:44 ` Theodore Y. Ts'o
  2019-02-20  6:31 ` Andreas Dilger
  0 siblings, 2 replies; 5+ messages in thread
From: Richard W.M. Jones @ 2019-02-19  8:03 UTC (permalink / raw)
  To: linux-ext4


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

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-02-20  7:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 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.