Re: Create ext2 filesystem from a directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Feb 19, 2019, at 12:03 AM, Richard W.M. Jones <rjones@xxxxxxxxxx> 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>"?

Cheers, Andreas





Attachment: signature.asc
Description: Message signed with OpenPGP


[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux