lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Wed, 20 Feb 2019 07:57:36 +0000
From:   "Richard W.M. Jones" <rjones@...hat.com>
To:     Andreas Dilger <adilger@...ger.ca>
Cc:     linux-ext4@...r.kernel.org
Subject: Re: Create ext2 filesystem from a directory

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@...hat.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/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ