* Package: sys-fs/dd-rescue-1.99.8 * Repository: gentoo * Maintainer: base-system@gentoo.org * USE: abi_x86_64 amd64 cpu_flags_x86_avx2 cpu_flags_x86_sse4_2 elibc_glibc kernel_linux userland_GNU xattr * FEATURES: network-sandbox preserve-libs sandbox test userpriv usersandbox >>> Unpacking source... >>> Unpacking dd_rescue-1.99.8.tar.bz2 to /var/tmp/portage/sys-fs/dd-rescue-1.99.8/work >>> Source unpacked in /var/tmp/portage/sys-fs/dd-rescue-1.99.8/work >>> Preparing source in /var/tmp/portage/sys-fs/dd-rescue-1.99.8/work/dd_rescue-1.99.8 ... * Applying dd_rescue-1.99-musl-r2.patch ... [ ok ] * Applying dd-rescue-1.99.8-xattr.patch ... [ ok ] * Running eautoreconf in '/var/tmp/portage/sys-fs/dd-rescue-1.99.8/work/dd_rescue-1.99.8' ... * Running aclocal ... [ ok ] * This package has a configure.in file which has long been deprecated. Please * update it to use configure.ac instead as newer versions of autotools will die * when it finds this file. See https://bugs.gentoo.org/426262 for details. * Running autoconf --force ... [ ok ] * Running autoheader ... [ ok ] * Running elibtoolize in: dd_rescue-1.99.8/ >>> Source prepared. >>> Configuring source in /var/tmp/portage/sys-fs/dd-rescue-1.99.8/work/dd_rescue-1.99.8 ... ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --docdir=/usr/share/doc/dd-rescue-1.99.8 --htmldir=/usr/share/doc/dd-rescue-1.99.8/html --libdir=/usr/lib64 checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed checking for an ANSI C-conforming const... yes checking for inline... inline checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking fallocate.h usability... no checking fallocate.h presence... no checking for fallocate.h... no checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for unistd.h... (cached) yes checking sys/xattr.h usability... yes checking sys/xattr.h presence... yes checking for sys/xattr.h... yes checking sys/acl.h usability... yes checking sys/acl.h presence... yes checking for sys/acl.h... yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking sys/reg.h usability... yes checking sys/reg.h presence... yes checking for sys/reg.h... yes checking endian.h usability... yes checking endian.h presence... yes checking for endian.h... yes checking linux/fs.h usability... yes checking linux/fs.h presence... yes checking for linux/fs.h... yes checking linux/fiemap.h usability... yes checking linux/fiemap.h presence... yes checking for linux/fiemap.h... yes checking for stdint.h... (cached) yes checking for lzo/lzo1x.h... (cached) no checking for openssl/evp.h... (cached) no checking linux/random.h usability... yes checking linux/random.h presence... yes checking for linux/random.h... yes checking malloc.h usability... yes checking malloc.h presence... yes checking for malloc.h... yes checking sched.h usability... yes checking sched.h presence... yes checking for sched.h... yes checking sys/statvfs.h usability... yes checking sys/statvfs.h presence... yes checking for sys/statvfs.h... yes checking for ffs... yes checking for ffsl... yes checking for basename... yes checking for fallocate64... yes checking for splice... yes checking for getopt_long... yes checking for open64... yes checking for pread... yes checking for pread64... yes checking for lseek64... yes checking for stat64... yes checking for posix_fadvise... yes checking for posix_fadvise64... yes checking for __builtin_prefetch... no checking for htobe64... no checking for feof_unlocked... yes checking for getline... yes checking for getentropy... yes checking for getrandom... yes checking for posix_memalign... yes checking for valloc... yes checking for sched_yield... yes checking for fstatvfs... yes checking for __builtin_cpu_supports... no checking for dlsym in -ldl... yes checking for linux_fallocate64 in -lfallocate... no checking for lzo1x_1_compress in -llzo2... (cached) no checking for EVP_aes_192_ctr in -lcrypto... (cached) no checking if x86_64-pc-linux-gnu-gcc supports -msse4.2... yes checking if x86_64-pc-linux-gnu-gcc supports -mavx2... yes checking if x86_64-pc-linux-gnu-gcc supports -mrdrnd... yes checking if x86_64-pc-linux-gnu-gcc supports -maes... yes checking whether asm rep nop is supported... yes configure: creating ./config.status config.status: creating config.h >>> Source configured. >>> Compiling source in /var/tmp/portage/sys-fs/dd-rescue-1.99.8/work/dd_rescue-1.99.8 ... make -j1 MACH=x86_64 OS=Linux HAVE_SSE42=1 HAVE_AVX2=1 'RPM_OPT_FLAGS=-O2 -pipe -march=native -fno-common ' CFLAGS_OPT=$(CFLAGS) 'LDFLAGS=-Wl,-O1 -Wl,--as-needed -Wl,-rpath,/usr/lib64/dd-rescue' CC=x86_64-pc-linux-gnu-gcc #x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -I . -DHAVE_AESNI -DGEN_DEP -msse4.2 -maes -mavx2 -mrdrnd -MM ./*.c >.dep x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -I . -DHAVE_AESNI -DGEN_DEP -D__AES__ -D__SSE4_1__ -D__SSSE3__ -D__SSE3__ -D__SSE2__ -D__SSE__ -D__MMX__ -I . -MM ./*.c >.dep sed 's/\.o:/\.po:/' <.dep >.dep2 cat .dep2 >> .dep rm .dep2 fatal: not a git repository (or any parent up to mount point /var/tmp) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -I . -DHAVE_AESNI -DVERSION=\"1.99.8\" -D__COMPILER__="\"x86_64-pc-linux-gnu-gcc (Gentoo Hardened 9.2.0-r3 p4) 9.2.0\"" -DID=\"DD_RESCUE_1_99_8\" -fPIE -c random.c random.c: In function ‘random_bytes’: random.c:69:37: warning: implicit declaration of function ‘getrandom’; did you mean ‘srandom’? [-Wimplicit-function-declaration] 69 | #define READ_RAND(fd, buf, ln, flg) getrandom(buf, ln, flg) | ^~~~~~~~~ random.c:102:13: note: in expansion of macro ‘READ_RAND’ 102 | int err = READ_RAND(fd, &rnd, 4, flg); | ^~~~~~~~~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -I . -DHAVE_AESNI -fPIE -c frandom.c x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -I . -DHAVE_AESNI -fPIE -c fmt_no.c x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -I . -DHAVE_AESNI -fPIE -c find_nonzero.c fatal: not a git repository (or any parent up to mount point /var/tmp) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -I . -DHAVE_AESNI -DVERSION=\"1.99.8\" -D__COMPILER__="\"x86_64-pc-linux-gnu-gcc (Gentoo Hardened 9.2.0-r3 p4) 9.2.0\"" -DID=\"DD_RESCUE_1_99_8\" -fPIE -c fstrim.c x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -I . -DHAVE_AESNI -fPIE -msse2 -c find_nonzero_sse2.c x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -I . -DHAVE_AESNI -fPIE -msse4.2 -c ffs_sse42.c x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -I . -DHAVE_AESNI -fPIE -mrdrnd -maes -c rdrand.c x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -I . -DHAVE_AESNI -fPIE -mavx2 -c find_nonzero_avx.c fatal: not a git repository (or any parent up to mount point /var/tmp) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -I . -DHAVE_AESNI -fPIE -pie -DVERSION=\"1.99.8\" -D__COMPILER__="\"x86_64-pc-linux-gnu-gcc (Gentoo Hardened 9.2.0-r3 p4) 9.2.0\"" -DID=\"DD_RESCUE_1_99_8\" dd_rescue.c -o dd_rescue random.o frandom.o fmt_no.o find_nonzero.o fstrim.o find_nonzero_sse2.o ffs_sse42.o rdrand.o find_nonzero_avx.o -Wl,-O1 -Wl,--as-needed -Wl,-rpath,/usr/lib64/dd-rescue -ldl -rdynamic In file included from dd_rescue.c:118: fmt_no.h:2: warning: "_GNU_SOURCE" redefined 2 | #define _GNU_SOURCE | dd_rescue.c:70: note: this is the location of the previous definition 70 | # define _GNU_SOURCE 1 | In file included from find_nonzero.h:13, from dd_rescue.c:119: ffs.h:19: warning: "_GNU_SOURCE" redefined 19 | #define _GNU_SOURCE 1 | In file included from dd_rescue.c:118: fmt_no.h:2: note: this is the location of the previous definition 2 | #define _GNU_SOURCE | In file included from dd_rescue.c:121: fstrim.h:1: warning: "_GNU_SOURCE" redefined 1 | #define _GNU_SOURCE | In file included from find_nonzero.h:13, from dd_rescue.c:119: ffs.h:19: note: this is the location of the previous definition 19 | #define _GNU_SOURCE 1 | fatal: not a git repository (or any parent up to mount point /var/tmp) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -I . -DHAVE_AESNI -DVERSION=\"1.99.8\" -D__COMPILER__="\"x86_64-pc-linux-gnu-gcc (Gentoo Hardened 9.2.0-r3 p4) 9.2.0\"" -DID=\"DD_RESCUE_1_99_8\" -fPIC -o libddr_hash.po -c libddr_hash.c In file included from ddr_plugin.h:24, from libddr_hash.c:17: ddr_ctrl.h:10: warning: "_GNU_SOURCE" redefined 10 | #define _GNU_SOURCE | libddr_hash.c:11: note: this is the location of the previous definition 11 | # define _GNU_SOURCE 1 | x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -I . -DHAVE_AESNI -fPIC -o md5.po -c md5.c x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -I . -DHAVE_AESNI -fPIC -o sha256.po -c sha256.c x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -I . -DHAVE_AESNI -fPIC -o sha512.po -c sha512.c x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -I . -DHAVE_AESNI -fPIC -o sha1.po -c sha1.c fatal: not a git repository (or any parent up to mount point /var/tmp) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -I . -DHAVE_AESNI -DVERSION=\"1.99.8\" -D__COMPILER__="\"x86_64-pc-linux-gnu-gcc (Gentoo Hardened 9.2.0-r3 p4) 9.2.0\"" -DID=\"DD_RESCUE_1_99_8\" -fPIC -o pbkdf2.po -c pbkdf2.c fatal: not a git repository (or any parent up to mount point /var/tmp) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -I . -DHAVE_AESNI -DVERSION=\"1.99.8\" -D__COMPILER__="\"x86_64-pc-linux-gnu-gcc (Gentoo Hardened 9.2.0-r3 p4) 9.2.0\"" -DID=\"DD_RESCUE_1_99_8\" -fPIC -o checksum_file.po -c checksum_file.c x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -I . -DHAVE_AESNI -Wl,-O1 -Wl,--as-needed -Wl,-rpath,/usr/lib64/dd-rescue -shared -o libddr_hash.so libddr_hash.po md5.po sha256.po sha512.po sha1.po pbkdf2.po checksum_file.po ln -sf libddr_hash.so libddr_MD5.so fatal: not a git repository (or any parent up to mount point /var/tmp) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -I . -DHAVE_AESNI -DVERSION=\"1.99.8\" -D__COMPILER__="\"x86_64-pc-linux-gnu-gcc (Gentoo Hardened 9.2.0-r3 p4) 9.2.0\"" -DID=\"DD_RESCUE_1_99_8\" -fPIC -o libddr_null.po -c libddr_null.c x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -I . -DHAVE_AESNI -Wl,-O1 -Wl,--as-needed -Wl,-rpath,/usr/lib64/dd-rescue -shared -o libddr_null.so libddr_null.po fatal: not a git repository (or any parent up to mount point /var/tmp) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -I . -DHAVE_AESNI -DVERSION=\"1.99.8\" -D__COMPILER__="\"x86_64-pc-linux-gnu-gcc (Gentoo Hardened 9.2.0-r3 p4) 9.2.0\"" -DID=\"DD_RESCUE_1_99_8\" -fPIC -o libddr_crypt.po -c libddr_crypt.c In file included from ddr_plugin.h:24, from libddr_crypt.c:16: ddr_ctrl.h:10: warning: "_GNU_SOURCE" redefined 10 | #define _GNU_SOURCE | libddr_crypt.c:10: note: this is the location of the previous definition 10 | # define _GNU_SOURCE 1 | In file included from find_nonzero.h:13, from libddr_crypt.c:18: ffs.h:19: warning: "_GNU_SOURCE" redefined 19 | #define _GNU_SOURCE 1 | In file included from libddr_crypt.c:17: ddr_ctrl.h:10: note: this is the location of the previous definition 10 | #define _GNU_SOURCE | fatal: not a git repository (or any parent up to mount point /var/tmp) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -I . -DHAVE_AESNI -DVERSION=\"1.99.8\" -D__COMPILER__="\"x86_64-pc-linux-gnu-gcc (Gentoo Hardened 9.2.0-r3 p4) 9.2.0\"" -DID=\"DD_RESCUE_1_99_8\" -fPIC -o aes.po -c aes.c fatal: not a git repository (or any parent up to mount point /var/tmp) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -I . -DHAVE_AESNI -DVERSION=\"1.99.8\" -D__COMPILER__="\"x86_64-pc-linux-gnu-gcc (Gentoo Hardened 9.2.0-r3 p4) 9.2.0\"" -DID=\"DD_RESCUE_1_99_8\" -fPIC -o aes_c.po -c aes_c.c x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -I . -DHAVE_AESNI -fPIC -O3 -maes -msse4.1 -c aesni.c -o aesni.po fatal: not a git repository (or any parent up to mount point /var/tmp) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -I . -DHAVE_AESNI -DVERSION=\"1.99.8\" -D__COMPILER__="\"x86_64-pc-linux-gnu-gcc (Gentoo Hardened 9.2.0-r3 p4) 9.2.0\"" -DID=\"DD_RESCUE_1_99_8\" -fPIC -o pbkdf_ossl.po -c pbkdf_ossl.c fatal: not a git repository (or any parent up to mount point /var/tmp) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -I . -DHAVE_AESNI -DVERSION=\"1.99.8\" -D__COMPILER__="\"x86_64-pc-linux-gnu-gcc (Gentoo Hardened 9.2.0-r3 p4) 9.2.0\"" -DID=\"DD_RESCUE_1_99_8\" -fPIC -o secmem.po -c secmem.c fatal: not a git repository (or any parent up to mount point /var/tmp) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -I . -DHAVE_AESNI -DVERSION=\"1.99.8\" -D__COMPILER__="\"x86_64-pc-linux-gnu-gcc (Gentoo Hardened 9.2.0-r3 p4) 9.2.0\"" -DID=\"DD_RESCUE_1_99_8\" -fPIC -o random.po -c random.c random.c: In function ‘random_bytes’: random.c:69:37: warning: implicit declaration of function ‘getrandom’; did you mean ‘srandom’? [-Wimplicit-function-declaration] 69 | #define READ_RAND(fd, buf, ln, flg) getrandom(buf, ln, flg) | ^~~~~~~~~ random.c:102:13: note: in expansion of macro ‘READ_RAND’ 102 | int err = READ_RAND(fd, &rnd, 4, flg); | ^~~~~~~~~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -I . -DHAVE_AESNI -Wl,-O1 -Wl,--as-needed -Wl,-rpath,/usr/lib64/dd-rescue -shared -o libddr_crypt.so libddr_crypt.po aes.po aes_c.po aesni.po pbkdf2.po sha256.po pbkdf_ossl.po md5.po checksum_file.po secmem.po random.po >>> Source compiled. >>> Test phase: sys-fs/dd-rescue-1.99.8 make -j1 MACH=x86_64 OS=Linux HAVE_SSE42=1 HAVE_AVX2=1 'RPM_OPT_FLAGS=-O2 -pipe -march=native -fno-common ' CFLAGS_OPT=$(CFLAGS) 'LDFLAGS=-Wl,-O1 -Wl,--as-needed -Wl,-rpath,/usr/lib64/dd-rescue' CC=x86_64-pc-linux-gnu-gcc check x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -I . -DHAVE_AESNI -fPIE -o find_nonzero_main.o -c find_nonzero.c -DTEST x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -I . -DHAVE_AESNI -fPIE -pie -o find_nonzero find_nonzero_main.o find_nonzero_sse2.o ffs_sse42.o rdrand.o find_nonzero_avx.o x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -I . -DHAVE_AESNI -fPIE -pie -DMD5_MAIN -o md5 md5.c x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -I . -DHAVE_AESNI -fPIE -pie -DSHA1_MAIN -o sha1 sha1.c x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -I . -DHAVE_AESNI -fPIE -pie -DSHA256_MAIN -o sha256 sha256.c x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -I . -DHAVE_AESNI -fPIE -pie -DSHA512_MAIN -o sha512 sha512.c x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -I . -DHAVE_AESNI -fPIE -pie -o fmt_no fmt_no.c -DTEST make check ... Pass VG="valgrind --options" to use with valgrind ./dd_rescue --version dd_rescue Version 1.99.8, kurt@garloff.de, GNU GPL v2/v3 (DD_RESCUE_1_99_8) (compiled Feb 1 2020 20:15:34 by x86_64-pc-linux-gnu-gcc (Gentoo Hardened 9.2.0-r3 p4) 9.2.0) (features: O_DIRECT dl/libfallocate fallocate splice fitrim xattr rdrnd avx2) dd_rescue is free software. It's protected by the terms of GNU GPL v2 or v3 (at your option). ***** find_nonzero tests ***** ./find_nonzero 2 Using extensions: avx2 00000000: last 0 first 0 00000001: last 1 first 1 80000000: last 32 first 32 05000100: last 9 first 27 00900002: last 2 first 24 00000100: last 9 first 9 80400000: last 23 first 32 0030000000000100: last 9 first 54 1000000000000000: last 61 first 61 0000000000001000: last 13 first 13 65536 x find_nonzero_c ( 0): 0 ( 0.000s => 781MB/s) 131072 x find_nonzero_avx2 ( 0): 0 ( 0.001s => 188MB/s) 65536 x find_nonzero ( 0): 0 ( 0.000s => 947MB/s) 65536 x find_nonzero_rep ( 0): 0 ( 0.001s => 51MB/s) 16384 x find_nonzero_c ( 8177): 8177 ( 0.014s => 9455MB/s) 32768 x find_nonzero_avx2 ( 8177): 8177 ( 0.010s => 25998MB/s) 16384 x find_nonzero ( 8177): 8177 ( 0.005s => 25521MB/s) 16384 x find_nonzero_rep ( 8177): 8177 ( 0.155s => 825MB/s) 16384 x find_nonzero ( 8177): 8177 ( 0.005s => 24409MB/s) 16384 x find_nonzero_rep ( 8177): 8177 ( 0.146s => 873MB/s) 4096 x find_nonzero_c ( 32759): 32759 ( 0.013s => 9746MB/s) 8192 x find_nonzero_avx2 ( 32759): 32759 ( 0.010s => 26694MB/s) 8192 x find_nonzero_sse2o ( 32759): 32759 ( 0.014s => 17670MB/s) 4096 x find_nonzero ( 32759): 32759 ( 0.005s => 26456MB/s) 4096 x find_nonzero_rep ( 32759): 32759 ( 0.146s => 874MB/s) 1024 x find_nonzero_c ( 131064): 131064 ( 0.013s => 9972MB/s) 2048 x find_nonzero_avx2 ( 131064): 131064 ( 0.010s => 25774MB/s) 1024 x find_nonzero_rep ( 131064): 131064 ( 0.146s => 874MB/s) 128 x find_nonzero_c ( 1048569): 1048569 ( 0.013s => 9974MB/s) 256 x find_nonzero_avx2 ( 1048569): 1048569 ( 0.011s => 22798MB/s) 128 x find_nonzero_rep ( 1048569): 1048569 ( 0.146s => 876MB/s) 32 x find_nonzero_c ( 4194303): 4194303 ( 0.013s => 9895MB/s) 64 x find_nonzero_avx2 ( 4194303): 4194303 ( 0.011s => 22681MB/s) 8 x find_nonzero_c (16777216): 16777216 ( 0.017s => 7641MB/s) 16 x find_nonzero_avx2 (16777216): 16777216 ( 0.023s => 10906MB/s) 2 x find_nonzero_c (67108864): 67108864 ( 0.017s => 7589MB/s) 4 x find_nonzero_avx2 (67108864): 67108864 ( 0.026s => 9949MB/s) 1 x find_nonzero_c (67108864): 67108848 ( 0.009s => 7410MB/s) 1 x find_nonzero_avx2 (67108864): 67108848 ( 0.006s => 10189MB/s) 1 x find_nonzero (67108864): 67108848 ( 0.006s => 10502MB/s) 1 x find_nonzero_rep (67108864): 67108848 ( 0.073s => 877MB/s) 1 x find_nonzero_c (67108864): 67108859 ( 0.008s => 7627MB/s) 1 x find_nonzero_avx2 (67108864): 67108859 ( 0.006s => 10495MB/s) 1 x find_nonzero (67108864): 67108859 ( 0.006s => 10492MB/s) 1 x find_nonzero_rep (67108864): 67108859 ( 0.073s => 873MB/s) 10 x find_nonzero_c (12582912): 12582912 ( 0.016s => 7724MB/s) 20 x find_nonzero_avx2 (12582912): 12582912 ( 0.021s => 11492MB/s) 20 x find_nonzero_sse2o (12582912): 12582912 ( 0.025s => 9788MB/s) ***** fmt_no tests ***** ./fmt_no 1024200 1000.20: 1000.2 _ 1000.2 __ 1000.2 ___ 1000.2 ____ 1000.20 _____ 1000.20 ______ 1000.20 _______ 1000.20 ________1,000.20 _________,000.2+ 1,000.20 ____ 1000 _____ 1000 ______ 1000 _______ 1000 ________1,000 _________>000 1,000 1000.2 1000.2 0x3e8.3 1000 1000 1000 1000 1000 1000 ***** dd_rescue tests ***** ./dd_rescue -apP dd_rescue dd_rescue.copy dd_rescue: (info): Using softbs=128.0kiB, hardbs=4.0kiB dd_rescue: (info): expect to copy 112.3kiB from dd_rescue dd_rescue: (info): read dd_rescue (112.3kiB): EOF dd_rescue: (info): Summary for dd_rescue -> dd_rescue.copy dd_rescue: (info): ipos: 112.3k, opos: 112.3k, xferd: 112.3k errs: 0, errxfer: 0.0k, succxfer: 112.3k +curr.rate: 1811618kB/s, avg.rate: 1811618kB/s, avg.load:109.6% >-.......................................-< 100% TOT: 0:00:00 cmp dd_rescue dd_rescue.copy ./dd_rescue -b16k -B16k -a dd_rescue dd_rescue.copy dd_rescue: (info): Using softbs=16.0kiB, hardbs=16.0kiB dd_rescue: (info): expect to copy 112.3kiB from dd_rescue dd_rescue: (info): read dd_rescue (112.3kiB): EOF dd_rescue: (info): Summary for dd_rescue -> dd_rescue.copy dd_rescue: (info): ipos: 112.3k, opos: 112.3k, xferd: 112.3k errs: 0, errxfer: 0.0k, succxfer: 112.3k +curr.rate: 960003kB/s, avg.rate: 960003kB/s, avg.load:105.9% >-.......................................-< 100% TOT: 0:00:00 cmp dd_rescue dd_rescue.copy ./dd_rescue -r dd_rescue dd_rescue.copy dd_rescue: (info): Using softbs=128.0kiB, hardbs=4.0kiB dd_rescue: (info): expect to copy 112.3kiB from dd_rescue dd_rescue: (info): Summary for dd_rescue -> dd_rescue.copy dd_rescue: (info): ipos: 0.0k, opos: 0.0k, xferd: 112.3k - errs: 0, errxfer: 0.0k, succxfer: 112.3k +curr.rate: 1676423kB/s, avg.rate: 1676423kB/s, avg.load:107.4% >-.......................................-< 100% TOT: 0:00:00 cmp dd_rescue dd_rescue.copy ./dd_rescue -x dd_rescue dd_rescue.copy dd_rescue: (info): Using softbs=128.0kiB, hardbs=4.0kiB dd_rescue: (info): expect to copy 112.3kiB from dd_rescue dd_rescue: (info): read dd_rescue (112.3kiB): EOF dd_rescue: (info): Summary for dd_rescue -> dd_rescue.copy dd_rescue: (info): ipos: 112.3k, opos: 224.6k, xferd: 112.3k errs: 0, errxfer: 0.0k, succxfer: 112.3k +curr.rate: 1080003kB/s, avg.rate: 1080003kB/s, avg.load:107.6% >-.......................................-< 100% TOT: 0:00:00 cat dd_rescue dd_rescue > dd_rescue.copy2 cmp dd_rescue.copy dd_rescue.copy2 ./dd_rescue -r -S 1M -m 4k /dev/null zero dd_rescue: (info): Using softbs=128.0kiB, hardbs=4.0kiB dd_rescue: (info): expect to copy 4.0kiB from /dev/null dd_rescue: (info): Summary for /dev/null -> zero dd_rescue: (info): ipos: 0.0k, opos: 1024.0k, xferd: 0.0k - errs: 0, errxfer: 0.0k, succxfer: 0.0k +curr.rate: 0kB/s, avg.rate: 0kB/s, avg.load:146.1% ***** dd_rescue sparse tests ***** ./dd_rescue -a -m 261k /dev/zero zero dd_rescue: (info): Using softbs=128.0kiB, hardbs=4.0kiB dd_rescue: (info): expect to copy 261.0kiB from /dev/zero dd_rescue: (info): Summary for /dev/zero -> zero dd_rescue: (info): ipos: 261.0k, opos: 261.0k, xferd: 261.0k errs: 0, errxfer: 0.0k, succxfer: 0.0k +curr.rate: 6868422kB/s, avg.rate: 6868422kB/s, avg.load:115.7% >-.......................................-< 100% TOT: 0:00:00 du zero 0 zero ./dd_rescue -S 12k -m 4k -b 4k -Z 0 zero dd_rescue: (info): Using softbs=4.0kiB, hardbs=4.0kiB dd_rescue: (info): zero is sparse (100%) dd_rescue: (info): expect to copy 4.0kiB from PRNG_frnd dd_rescue: (info): Summary for PRNG_frnd -> zero dd_rescue: (info): ipos: 4.0k, opos: 16.0k, xferd: 4.0k errs: 0, errxfer: 0.0k, succxfer: 4.0k +curr.rate: 133333kB/s, avg.rate: 133333kB/s, avg.load:106.6% >-.......................................-= 100% TOT: 0:00:00 ./dd_rescue -S 20k -m 4k -b 4k -Z 0 zero dd_rescue: (info): Using softbs=4.0kiB, hardbs=4.0kiB dd_rescue: (info): zero is sparse (98%) dd_rescue: (info): expect to copy 4.0kiB from PRNG_frnd dd_rescue: (info): Summary for PRNG_frnd -> zero dd_rescue: (info): ipos: 4.0k, opos: 24.0k, xferd: 4.0k errs: 0, errxfer: 0.0k, succxfer: 4.0k +curr.rate: 160000kB/s, avg.rate: 160000kB/s, avg.load:104.0% >-.......................................-= 100% TOT: 0:00:00 ./dd_rescue -a -b 8k zero zero2 dd_rescue: (info): Using softbs=8.0kiB, hardbs=4.0kiB dd_rescue: (info): zero is sparse (96%) dd_rescue: (info): expect to copy 261.0kiB from zero dd_rescue: (info): read zero (261.0kiB): EOF dd_rescue: (info): Summary for zero -> zero2 dd_rescue: (info): ipos: 261.0k, opos: 261.0k, xferd: 261.0k errs: 0, errxfer: 0.0k, succxfer: 8.0k +curr.rate: 3527027kB/s, avg.rate: 3527027kB/s, avg.load:105.4% >-..................-...................--< 100% TOT: 0:00:00 du zero zero2 8 zero 8 zero2 cmp zero zero2 ./dd_rescue -a -b 16k zero zero2 dd_rescue: (info): Using softbs=16.0kiB, hardbs=4.0kiB dd_rescue: (info): zero is sparse (96%) dd_rescue: (info): expect to copy 261.0kiB from zero dd_rescue: (info): read zero (261.0kiB): EOF dd_rescue: (info): Summary for zero -> zero2 dd_rescue: (info): ipos: 261.0k, opos: 261.0k, xferd: 261.0k errs: 0, errxfer: 0.0k, succxfer: 12.0k +curr.rate: 3480000kB/s, avg.rate: 3480000kB/s, avg.load:109.3% >-......................................--< 100% TOT: 0:00:00 du zero zero2 8 zero 12 zero2 cmp zero zero2 ***** dd_rescue RND overwrite tests ***** ./dd_rescue -m 97263283 /dev/zero TEST dd_rescue: (info): Using softbs=128.0kiB, hardbs=4.0kiB dd_rescue: (info): expect to copy 94983.7kiB from /dev/zero dd_rescue: (info): Summary for /dev/zero -> TEST dd_rescue: (info): ipos: 94983.7k, opos: 94983.7k, xferd: 94983.7k errs: 0, errxfer: 0.0k, succxfer: 94983.7k +curr.rate: 4010119kB/s, avg.rate: 4010119kB/s, avg.load: 99.9% >-----------------------------------------< 100% TOT: 0:00:00 ./dd_rescue -MA -Z 0 TEST dd_rescue: (info): Using softbs=128.0kiB, hardbs=4.0kiB dd_rescue: (info): limit max xfer to 94983.7kiB dd_rescue: (info): expect to copy 94983.7kiB from PRNG_frnd dd_rescue: (info): ipos: 51200.0k, opos: 51200.0k, xferd: 51200.0k errs: 0, errxfer: 0.0k, succxfer: 51200.0k +curr.rate: 494032kB/s, avg.rate: 494032kB/s, avg.load: 97.8% >----------------------...................< 53% ETA: 0:00:00 dd_rescue: (info): Summary for PRNG_frnd -> TEST dd_rescue: (info): ipos: 94983.7k, opos: 94983.7k, xferd: 94983.7k errs: 0, errxfer: 0.0k, succxfer: 94983.7k +curr.rate: 486717kB/s, avg.rate: 480099kB/s, avg.load: 98.8% >-----------------------------------------< 100% TOT: 0:00:00 ./dd_rescue -MA -2 /dev/urandom TEST dd_rescue: (info): Using softbs=128.0kiB, hardbs=4.0kiB dd_rescue: (info): limit max xfer to 94983.7kiB dd_rescue: (info): expect to copy 94983.7kiB from PRNG_frnd dd_rescue: (info): Triple overwrite (BSI M7.15): first pass ... (frandom) dd_rescue: (info): ipos: 45056.0k, opos: 45056.0k, xferd: 45056.0k errs: 0, errxfer: 0.0k, succxfer: 45056.0k +curr.rate: 439087kB/s, avg.rate: 439087kB/s, avg.load:100.0% >-------------------......................< 47% ETA: 0:00:00 syncing ... [Add_rescue: (info): Triple overwrite (BSI M7.15): last pass ... (zeros) [A[A[A[Add_rescue: (info): ipos: 2048.0k, opos: 2048.0k, xferd: 2048.0k errs: 0, errxfer: 0.0k, succxfer: 97031.7k +curr.rate: 223350kB/s, avg.rate: 5007335kB/s, avg.load:100.7% >.---------------------------------------.< 2% ETA: 0:00:00 dd_rescue: (info): Summary for FRND+ZERO -> TEST dd_rescue: (info): ipos: 94983.7k, opos: 94983.7k, xferd: 189967.3k errs: 0, errxfer: 0.0k, succxfer: 189967.3k +curr.rate: 2927623kB/s, avg.rate: 859188kB/s, avg.load: 99.9% >.........................................< 200% TOT: 0:00:00 ***** dd_rescue ratecontrol test ***** # Test system must be fast enough to achieve ~20MB/s ... OLDDT=`date +%s`; ./dd_rescue -m 64M -C 20M /dev/zero /dev/null; DT=`date +%s`; ARCH=$(uname -m); test $(($DT-$OLDDT)) = 3 -o $(($DT-$OLDDT)) = 4 || test $(($DT-$OLDDT)) -ge 5 -a ${ARCH:0:3} = ppc dd_rescue: (info): Using softbs=128.0kiB, hardbs=4.0kiB dd_rescue: (warning): Not using sparse writes for non-seekable output dd_rescue: (info): expect to copy 65536.0kiB from /dev/zero dd_rescue: (info): ipos: 2048.0k, opos: 2048.0k, xferd: 2048.0k errs: 0, errxfer: 0.0k, succxfer: 2048.0k +curr.rate: 13466kB/s, avg.rate: 13466kB/s, avg.load: 0.0% >--.......................................< 3% ETA: 0:00:05 [A[A[A[Add_rescue: (info): ipos: 6144.0k, opos: 6144.0k, xferd: 6144.0k errs: 0, errxfer: 0.0k, succxfer: 6144.0k +curr.rate: 15598kB/s, avg.rate: 18160kB/s, avg.load: 0.0% >----.....................................< 9% ETA: 0:00:04 [A[A[A[Add_rescue: (info): ipos: 10240.0k, opos: 10240.0k, xferd: 10240.0k errs: 0, errxfer: 0.0k, succxfer: 10240.0k +curr.rate: 16890kB/s, avg.rate: 19120kB/s, avg.load: 0.0% >----.--..................................< 15% ETA: 0:00:03 [A[A[A[Add_rescue: (info): ipos: 14336.0k, opos: 14336.0k, xferd: 14336.0k errs: 0, errxfer: 0.0k, succxfer: 14336.0k +curr.rate: 17808kB/s, avg.rate: 19511kB/s, avg.load: 0.0% >----.----................................< 21% ETA: 0:00:03 [A[A[A[Add_rescue: (info): ipos: 18432.0k, opos: 18432.0k, xferd: 18432.0k errs: 0, errxfer: 0.0k, succxfer: 18432.0k +curr.rate: 18470kB/s, avg.rate: 19713kB/s, avg.load: 0.0% >----.----.--.............................< 28% ETA: 0:00:03 [A[A[A[Add_rescue: (info): ipos: 22528.0k, opos: 22528.0k, xferd: 22528.0k errs: 0, errxfer: 0.0k, succxfer: 22528.0k +curr.rate: 18993kB/s, avg.rate: 19862kB/s, avg.load: 0.0% >----.----.----...........................< 34% ETA: 0:00:02 [A[A[A[Add_rescue: (info): ipos: 24576.0k, opos: 24576.0k, xferd: 24576.0k errs: 0, errxfer: 0.0k, succxfer: 24576.0k +curr.rate: 19359kB/s, avg.rate: 19910kB/s, avg.load: 0.0% >----.----.----.-.........................< 37% ETA: 0:00:02 [A[A[A[Add_rescue: (info): ipos: 28672.0k, opos: 28672.0k, xferd: 28672.0k errs: 0, errxfer: 0.0k, succxfer: 28672.0k +curr.rate: 19634kB/s, avg.rate: 19987kB/s, avg.load: 0.0% >----.----.----.---.......................< 43% ETA: 0:00:02 [A[A[A[Add_rescue: (info): ipos: 30720.0k, opos: 30720.0k, xferd: 30720.0k errs: 0, errxfer: 0.0k, succxfer: 30720.0k +curr.rate: 19839kB/s, avg.rate: 20017kB/s, avg.load: 0.0% >----.----.----.----......................< 46% ETA: 0:00:02 [A[A[A[Add_rescue: (info): ipos: 34816.0k, opos: 34816.0k, xferd: 34816.0k errs: 0, errxfer: 0.0k, succxfer: 34816.0k +curr.rate: 19994kB/s, avg.rate: 20068kB/s, avg.load: 0.0% >----.----.----.----.--...................< 53% ETA: 0:00:02 [A[A[A[Add_rescue: (info): ipos: 38912.0k, opos: 38912.0k, xferd: 38912.0k errs: 0, errxfer: 0.0k, succxfer: 38912.0k +curr.rate: 20135kB/s, avg.rate: 20119kB/s, avg.load: 0.0% >----.----.----.----.----.................< 59% ETA: 0:00:01 [A[A[A[Add_rescue: (info): ipos: 40960.0k, opos: 40960.0k, xferd: 40960.0k errs: 0, errxfer: 0.0k, succxfer: 40960.0k +curr.rate: 20165kB/s, avg.rate: 20126kB/s, avg.load: 0.0% >----.----.----.----.----.-...............< 62% ETA: 0:00:01 [A[A[A[Add_rescue: (info): ipos: 45056.0k, opos: 45056.0k, xferd: 45056.0k errs: 0, errxfer: 0.0k, succxfer: 45056.0k +curr.rate: 20238kB/s, avg.rate: 20155kB/s, avg.load: 0.0% >----.----.----.----.----.---.............< 68% ETA: 0:00:01 [A[A[A[Add_rescue: (info): ipos: 49152.0k, opos: 49152.0k, xferd: 49152.0k errs: 0, errxfer: 0.0k, succxfer: 49152.0k +curr.rate: 20319kB/s, avg.rate: 20189kB/s, avg.load: 0.0% >----.----.----.----.----.----.-..........< 75% ETA: 0:00:01 [A[A[A[Add_rescue: (info): ipos: 51200.0k, opos: 51200.0k, xferd: 51200.0k errs: 0, errxfer: 0.0k, succxfer: 51200.0k +curr.rate: 20353kB/s, avg.rate: 20199kB/s, avg.load: 0.0% >----.----.----.----.----.----.--.........< 78% ETA: 0:00:01 [A[A[A[Add_rescue: (info): ipos: 55296.0k, opos: 55296.0k, xferd: 55296.0k errs: 0, errxfer: 0.0k, succxfer: 55296.0k +curr.rate: 20379kB/s, avg.rate: 20218kB/s, avg.load: 0.0% >----.----.----.----.----.----.----.......< 84% ETA: 0:00:01 [A[A[A[Add_rescue: (info): ipos: 59392.0k, opos: 59392.0k, xferd: 59392.0k errs: 0, errxfer: 0.0k, succxfer: 59392.0k +curr.rate: 20399kB/s, avg.rate: 20234kB/s, avg.load: 0.0% >----.----.----.----.----.----.----.--....< 90% ETA: 0:00:00 [A[A[A[Add_rescue: (info): ipos: 63488.0k, opos: 63488.0k, xferd: 63488.0k errs: 0, errxfer: 0.0k, succxfer: 63488.0k +curr.rate: 20439kB/s, avg.rate: 20255kB/s, avg.load: 0.0% >----.----.----.----.----.----.----.----..< 96% ETA: 0:00:00 [A[A[A[Add_rescue: (info): ipos: 65536.0k, opos: 65536.0k, xferd: 65536.0k errs: 0, errxfer: 0.0k, succxfer: 65536.0k +curr.rate: 20443kB/s, avg.rate: 20261kB/s, avg.load: 0.0% >----.----.----.----.----.----.----.----.-< 100% ETA: 0:00:00 dd_rescue: (info): Summary for /dev/zero -> /dev/null dd_rescue: (info): ipos: 65536.0k, opos: 65536.0k, xferd: 65536.0k errs: 0, errxfer: 0.0k, succxfer: 65536.0k +curr.rate: 15332kB/s, avg.rate: 20261kB/s, avg.load: 0.0% >----.----.----.----.----.----.----.----.-< 100% TOT: 0:00:03 ***** dd_rescue MD5 plugin tests ***** ./md5 /dev/null d41d8cd98f00b204e9800998ecf8427e */dev/null ./md5 /dev/null | md5sum -c /dev/null: OK ./dd_rescue -a -b 16k -l TEST.log -o BB.log -m 32k /dev/zero TEST dd_rescue: (info): Using softbs=16.0kiB, hardbs=4.0kiB dd_rescue: (info): expect to copy 32.0kiB from /dev/zero dd_rescue: (info): Summary for /dev/zero -> TEST dd_rescue: (info): ipos: 32.0k, opos: 32.0k, xferd: 32.0k errs: 0, errxfer: 0.0k, succxfer: 0.0k +curr.rate: 2133334kB/s, avg.rate: 2133334kB/s, avg.load:146.6% >-.......................................-< 100% TOT: 0:00:00 ./dd_rescue -a -b 16k -m 32k /dev/zero TEST dd_rescue: (info): Using softbs=16.0kiB, hardbs=4.0kiB dd_rescue: (warning): write into TEST (@0.0k/32.0k): sparse not recommended dd_rescue: (info): TEST is sparse (100%) dd_rescue: (info): expect to copy 32.0kiB from /dev/zero dd_rescue: (info): Summary for /dev/zero -> TEST dd_rescue: (info): ipos: 32.0k, opos: 32.0k, xferd: 32.0k errs: 0, errxfer: 0.0k, succxfer: 0.0k +curr.rate: 2133334kB/s, avg.rate: 2133334kB/s, avg.load:133.3% >-.......................................-< 100% TOT: 0:00:00 ./dd_rescue -x -a -b 16k -m32k dd_rescue TEST dd_rescue: (info): Using softbs=16.0kiB, hardbs=4.0kiB dd_rescue: (info): TEST is sparse (100%) dd_rescue: (info): TEST is sparse (100%) dd_rescue: (info): expect to copy 32.0kiB from dd_rescue dd_rescue: (info): Summary for dd_rescue -> TEST dd_rescue: (info): ipos: 32.0k, opos: 64.0k, xferd: 32.0k errs: 0, errxfer: 0.0k, succxfer: 32.0k +curr.rate: 551724kB/s, avg.rate: 551724kB/s, avg.load:110.3% >-.......................................-= 100% TOT: 0:00:00 ./dd_rescue -x -a -b 16k -m17k /dev/zero TEST dd_rescue: (info): Using softbs=16.0kiB, hardbs=4.0kiB dd_rescue: (info): TEST is sparse (50%) dd_rescue: (info): TEST is sparse (50%) dd_rescue: (info): expect to copy 17.0kiB from /dev/zero dd_rescue: (info): Summary for /dev/zero -> TEST dd_rescue: (info): ipos: 17.0k, opos: 81.0k, xferd: 17.0k errs: 0, errxfer: 0.0k, succxfer: 0.0k +curr.rate: 894737kB/s, avg.rate: 894737kB/s, avg.load:121.0% >-.......................................-< 100% TOT: 0:00:00 ./dd_rescue -c0 -a -b16k -t -L ./libddr_MD5.so=output TEST TEST2 >HASH.TEST dd_rescue: (info): Using softbs=16.0kiB, hardbs=4.0kiB dd_rescue: (info): TEST is sparse (60%) dd_rescue: (info): expect to copy 81.0kiB from TEST dd_rescue: (info): read TEST (81.0kiB): EOF dd_rescue: (info): Summary for TEST -> TEST2 dd_rescue: (info): ipos: 81.0k, opos: 81.0k, xferd: 81.0k errs: 0, errxfer: 0.0k, succxfer: 32.0k +curr.rate: 257143kB/s, avg.rate: 257143kB/s, avg.load:102.2% >-.......................................-< 100% TOT: 0:00:00 dd_rescue: (info): MD5(0): md5 TEST (0-82944): 18b1b9b489cc15cbf1bd5ebd5a2ad20a md5sum -c HASH.TEST TEST: OK #MD5=$(./dd_rescue -c0 -a -b16k -L ./libddr_MD5.so TEST TEST2 2>&1 | grep 'MD5(0)': | tail -n1 | sed 's/^dd_rescue: (info): MD5(0):[^:]*: //'); MD5S=$(md5sum TEST | sed 's/ .*$//'); echo $MD5 $MD5S; if test "$MD5" != "$MD5S"; then false; fi rm -f HASH.TEST ./sha1 /dev/null da39a3ee5e6b4b0d3255bfef95601890afd80709 */dev/null ./sha1 /dev/null | sha1sum -c /dev/null: OK ./dd_rescue -c0 -a -b16k -t -L ./libddr_hash.so=outnm=HASH.TEST:alg=sha1 TEST TEST2 dd_rescue: (info): Using softbs=16.0kiB, hardbs=4.0kiB dd_rescue: (info): TEST is sparse (60%) dd_rescue: (info): expect to copy 81.0kiB from TEST dd_rescue: (info): read TEST (81.0kiB): EOF dd_rescue: (info): Summary for TEST -> TEST2 dd_rescue: (info): ipos: 81.0k, opos: 81.0k, xferd: 81.0k errs: 0, errxfer: 0.0k, succxfer: 32.0k +curr.rate: 182844kB/s, avg.rate: 182844kB/s, avg.load:101.3% >-.......................................-< 100% TOT: 0:00:00 dd_rescue: (info): hash(0): sha1 TEST (0-82944): a5c8c3a249022c67df42d1e5df85c0950593f653 sha1sum -c HASH.TEST TEST2: OK if test 1 = 1; then make -f ./Makefile check_sha2; fi make[1]: Entering directory '/var/tmp/portage/sys-fs/dd-rescue-1.99.8/work/dd_rescue-1.99.8' ln -sf sha256 sha224 ln -sf sha512 sha384 rm -f CHECKSUMS.sha256 CHECKSUMS.sha512 ./dd_rescue -c0 -a -b16k -t -L ./libddr_hash.so=output:alg=sha224 TEST TEST2 >HASH.TEST dd_rescue: (info): Using softbs=16.0kiB, hardbs=4.0kiB dd_rescue: (info): TEST is sparse (60%) dd_rescue: (info): expect to copy 81.0kiB from TEST dd_rescue: (info): read TEST (81.0kiB): EOF dd_rescue: (info): Summary for TEST -> TEST2 dd_rescue: (info): ipos: 81.0k, opos: 81.0k, xferd: 81.0k errs: 0, errxfer: 0.0k, succxfer: 32.0k +curr.rate: 137521kB/s, avg.rate: 137521kB/s, avg.load:101.1% >-.......................................-< 100% TOT: 0:00:00 dd_rescue: (info): hash(0): sha224 TEST (0-82944): 9e8aede592c478f1511db5d66e1e94b88b9f64673e8862d1adf64df9 sha224sum -c HASH.TEST TEST: OK ./dd_rescue -c0 -a -b16k -t -L ./libddr_hash.so=outnm=:alg=sha256 TEST TEST2 >HASH.TEST dd_rescue: (info): Using softbs=16.0kiB, hardbs=4.0kiB dd_rescue: (info): TEST is sparse (60%) dd_rescue: (info): expect to copy 81.0kiB from TEST dd_rescue: (info): read TEST (81.0kiB): EOF dd_rescue: (info): Summary for TEST -> TEST2 dd_rescue: (info): ipos: 81.0k, opos: 81.0k, xferd: 81.0k errs: 0, errxfer: 0.0k, succxfer: 32.0k +curr.rate: 121988kB/s, avg.rate: 121988kB/s, avg.load:101.0% >-.......................................-< 100% TOT: 0:00:00 dd_rescue: (info): hash(0): sha256 TEST (0-82944): 031e55b50cc187f82e09f5c914fae4e5762e9e78ca9122fbb830cbd3cf30a8be sha256sum -c CHECKSUMS.sha256 TEST2: OK ./dd_rescue -c0 -a -b16k -t -L ./libddr_hash.so=output:alg=sha384 TEST TEST2 >HASH.TEST dd_rescue: (info): Using softbs=16.0kiB, hardbs=4.0kiB dd_rescue: (info): TEST is sparse (60%) dd_rescue: (info): expect to copy 81.0kiB from TEST dd_rescue: (info): read TEST (81.0kiB): EOF dd_rescue: (info): Summary for TEST -> TEST2 dd_rescue: (info): ipos: 81.0k, opos: 81.0k, xferd: 81.0k errs: 0, errxfer: 0.0k, succxfer: 32.0k +curr.rate: 174946kB/s, avg.rate: 174946kB/s, avg.load:101.5% >-.......................................-< 100% TOT: 0:00:00 dd_rescue: (info): hash(0): sha384 TEST (0-82944): a4575822ecc4a2621140a7322dbf9cccdd44064f04ac92e90d192590febb72d03c874ff5796f8041391760711ae812f3 sha384sum -c HASH.TEST TEST: OK ./dd_rescue -c0 -a -b16k -t -L ./libddr_hash.so=outnm=:alg=sha512 TEST TEST2 dd_rescue: (info): Using softbs=16.0kiB, hardbs=4.0kiB dd_rescue: (info): TEST is sparse (60%) dd_rescue: (info): expect to copy 81.0kiB from TEST dd_rescue: (info): read TEST (81.0kiB): EOF dd_rescue: (info): Summary for TEST -> TEST2 dd_rescue: (info): ipos: 81.0k, opos: 81.0k, xferd: 81.0k errs: 0, errxfer: 0.0k, succxfer: 32.0k +curr.rate: 174194kB/s, avg.rate: 174194kB/s, avg.load:101.5% >-.......................................-< 100% TOT: 0:00:00 dd_rescue: (info): hash(0): sha512 TEST (0-82944): 8adcbc9fbf14d3172dcb09076872f0503c0bbec2ebb6ba16c72b2a3759df4f91f7b657d49969e3e52872090cdfc979963a9a63dadced0268dcc3b7d0af59ff4c ./dd_rescue -c0 -a -b16k -t -L ./libddr_hash.so=outnm=:alg=sha512,./libddr_null.so=change dd_rescue /dev/null dd_rescue: (info): Using softbs=16.0kiB, hardbs=4.0kiB dd_rescue: (warning): Not using sparse writes for non-seekable output dd_rescue: (info): expect to copy 112.3kiB from dd_rescue dd_rescue: (info): read dd_rescue (112.3kiB): EOF dd_rescue: (info): Summary for dd_rescue -> /dev/null dd_rescue: (info): ipos: 112.3k, opos: 112.3k, xferd: 112.3k errs: 0, errxfer: 0.0k, succxfer: 112.3k +curr.rate: 170700kB/s, avg.rate: 170700kB/s, avg.load:100.9% >-.......................................-< 100% TOT: 0:00:00 dd_rescue: (info): hash(0): sha512 dd_rescue (0-115016): f352d42f61a4a47564d66eae4a8ab8545e90224fdf589e7b2ba3beeff6851fb1fa2130974e752746ac4fef1ad6ba5640e1874e0104348d368b05cf352eeed8b1 dd_rescue: (info): hash(0): Write checksum to CHECKSUMS.sha512 for input file dd_rescue sha512sum -c CHECKSUMS.sha512 TEST2: OK dd_rescue: OK ./dd_rescue -c0 -a -b16k -t -L ./libddr_hash.so=sha512:chknm=CHECKSUMS.sha512 TEST2 /dev/null dd_rescue: (info): Using softbs=16.0kiB, hardbs=4.0kiB dd_rescue: (warning): Not using sparse writes for non-seekable output dd_rescue: (info): TEST2 is sparse (60%) , consider -a dd_rescue: (info): expect to copy 81.0kiB from TEST2 dd_rescue: (info): read TEST2 (81.0kiB): EOF dd_rescue: (info): Summary for TEST2 -> /dev/null dd_rescue: (info): ipos: 81.0k, opos: 81.0k, xferd: 81.0k errs: 0, errxfer: 0.0k, succxfer: 81.0k +curr.rate: 147273kB/s, avg.rate: 147273kB/s, avg.load:101.0% >-.......................................-< 100% TOT: 0:00:00 dd_rescue: (info): hash(0): sha512 TEST2 (0-82944): 8adcbc9fbf14d3172dcb09076872f0503c0bbec2ebb6ba16c72b2a3759df4f91f7b657d49969e3e52872090cdfc979963a9a63dadced0268dcc3b7d0af59ff4c ./dd_rescue -c0 -a -b16k -t -L ./libddr_hash.so=alg=sha512:chknm= dd_rescue /dev/null dd_rescue: (info): Using softbs=16.0kiB, hardbs=4.0kiB dd_rescue: (warning): Not using sparse writes for non-seekable output dd_rescue: (info): expect to copy 112.3kiB from dd_rescue dd_rescue: (info): read dd_rescue (112.3kiB): EOF dd_rescue: (info): Summary for dd_rescue -> /dev/null dd_rescue: (info): ipos: 112.3k, opos: 112.3k, xferd: 112.3k errs: 0, errxfer: 0.0k, succxfer: 112.3k +curr.rate: 193990kB/s, avg.rate: 193990kB/s, avg.load:101.0% >-.......................................-< 100% TOT: 0:00:00 dd_rescue: (info): hash(0): sha512 dd_rescue (0-115016): f352d42f61a4a47564d66eae4a8ab8545e90224fdf589e7b2ba3beeff6851fb1fa2130974e752746ac4fef1ad6ba5640e1874e0104348d368b05cf352eeed8b1 ./dd_rescue -c0 -a -b16k -t -L ./libddr_hash.so=sha512:check dd_rescue /dev/null /dev/null dd_rescue: (info): ipos: 112.3k, opos: 112.3k, xferd: 112.3k errs: 0, errxfer: 0.0k, succxfer: 112.3k +curr.rate: 176882kB/s, avg.rate: 176882kB/s, avg.load:100.9% >-.......................................-< 100% TOT: 0:00:00 dd_rescue: (info): hash(0): sha512 dd_rescue (0-115016): f352d42f61a4a47564d66eae4a8ab8545e90224fdf589e7b2ba3beeff6851fb1fa2130974e752746ac4fef1ad6ba5640e1874e0104348d368b05cf352eeed8b1 ./sha224 /dev/null | sha224sum -c /dev/null: OK ./sha256 /dev/null | sha256sum -c /dev/null: OK ./sha384 /dev/null | sha384sum -c /dev/null: OK ./sha512 /dev/null | sha512sum -c /dev/null: OK rm -f HASH.TEST CHECKSUMS.sha256 CHECKSUMS.sha512 TEST2 make[1]: Leaving directory '/var/tmp/portage/sys-fs/dd-rescue-1.99.8/work/dd_rescue-1.99.8' ./sha256 /dev/null e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 */dev/null ./sha512 /dev/null cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e */dev/null rm -f TEST TEST2 HASH.TEST BB.log TEST.log if test 0 = 1; then make -f ./Makefile check_lzo; fi if test 0 = 1; then make -f ./Makefile check_lzo_algos; fi #if test 0 = 1; then make -f ./Makefile check_lzo_test; fi if test 0 = 1; then make -f ./Makefile check_lzo_fuzz; fi # Tests for libddr_null ./dd_rescue -L ./libddr_null.so=debug dd_rescue /dev/null dd_rescue: (info): Using softbs=128.0kiB, hardbs=4.0kiB dd_rescue: (warning): Not using sparse writes for non-seekable output dd_rescue: (info): expect to copy 112.3kiB from dd_rescue dd_rescue: (debug): null(0): Block ipos 0 opos 0 with 115016 bytes dd_rescue: (info): read dd_rescue (112.3kiB): EOF dd_rescue: (info): Summary for dd_rescue -> /dev/null dd_rescue: (info): ipos: 112.3k, opos: 112.3k, xferd: 112.3k errs: 0, errxfer: 0.0k, succxfer: 112.3k +curr.rate: 2292251kB/s, avg.rate: 2292251kB/s, avg.load:112.2% >-.......................................-< 100% TOT: 0:00:00 dd_rescue: (debug): null(0): Block ipos 115016 opos 115016 with 0 bytes EOF # Tests with hash set_xattr and chk_xattr (with fallback as not all filesystems support xattrs ...) ./dd_rescue -tL ./libddr_hash.so=sha256:set_xattr:fallback dd_rescue /tmp/dd_rescue dd_rescue: (info): Using softbs=128.0kiB, hardbs=4.0kiB dd_rescue: (info): expect to copy 112.3kiB from dd_rescue dd_rescue: (info): read dd_rescue (112.3kiB): EOF dd_rescue: (info): Summary for dd_rescue -> /tmp/dd_rescue dd_rescue: (info): ipos: 112.3k, opos: 112.3k, xferd: 112.3k errs: 0, errxfer: 0.0k, succxfer: 112.3k +curr.rate: 3094kB/s, avg.rate: 3094kB/s, avg.load: 4.1% >-.......................................-< 100% TOT: 0:00:00 dd_rescue: (info): hash(0): sha256 dd_rescue (0-115016): df422483e0c41a6ccd04118877e85212bf6bf648f57ba724fb69ab9973ebc38e ./dd_rescue -L ./libddr_hash.so=sha256:chk_xattr:fallback /tmp/dd_rescue /dev/null dd_rescue: (info): Using softbs=128.0kiB, hardbs=4.0kiB dd_rescue: (warning): Not using sparse writes for non-seekable output dd_rescue: (info): expect to copy 112.3kiB from /tmp/dd_rescue dd_rescue: (info): read /tmp/dd_rescue (112.3kiB): EOF dd_rescue: (info): Summary for /tmp/dd_rescue -> /dev/null dd_rescue: (info): ipos: 112.3k, opos: 112.3k, xferd: 112.3k errs: 0, errxfer: 0.0k, succxfer: 112.3k +curr.rate: 100197kB/s, avg.rate: 100197kB/s, avg.load:100.6% >-.......................................-< 100% TOT: 0:00:00 dd_rescue: (info): hash(0): sha256 /tmp/dd_rescue (0-115016): df422483e0c41a6ccd04118877e85212bf6bf648f57ba724fb69ab9973ebc38e dd_rescue: (info): hash(0): Successfully validated hash from xattr for /tmp/dd_rescue rm -f /tmp/dd_rescue CHECKSUMS.sha256 # Tests with prepend and append ./dd_rescue -tL ./libddr_hash.so=sha512:set_xattr:fallback:prepend=abc:append=xyz dd_rescue /tmp/dd_rescue dd_rescue: (info): Using softbs=128.0kiB, hardbs=4.0kiB dd_rescue: (info): expect to copy 112.3kiB from dd_rescue dd_rescue: (info): read dd_rescue (112.3kiB): EOF dd_rescue: (info): Summary for dd_rescue -> /tmp/dd_rescue dd_rescue: (info): ipos: 112.3k, opos: 112.3k, xferd: 112.3k errs: 0, errxfer: 0.0k, succxfer: 112.3k +curr.rate: 3053kB/s, avg.rate: 3053kB/s, avg.load: 3.7% >-.......................................-< 100% TOT: 0:00:00 dd_rescue: (info): hash(0): sha512 dd_rescue (0-115019): eae5285aaf2db755e38406b3b03ebc4c512ccb85c9f9ffa6845c134f098e61827a1003d6f3054538933b9d5076c25cf1c02616cc60ac8d960e6f255933b9910c ./dd_rescue -L ./libddr_hash.so=sha512:chk_xattr:fallback /tmp/dd_rescue /dev/null && false || true dd_rescue: (info): Using softbs=128.0kiB, hardbs=4.0kiB dd_rescue: (warning): Not using sparse writes for non-seekable output dd_rescue: (info): expect to copy 112.3kiB from /tmp/dd_rescue dd_rescue: (info): read /tmp/dd_rescue (112.3kiB): EOF dd_rescue: (info): Summary for /tmp/dd_rescue -> /dev/null dd_rescue: (info): ipos: 112.3k, opos: 112.3k, xferd: 112.3k errs: 0, errxfer: 0.0k, succxfer: 112.3k +curr.rate: 178854kB/s, avg.rate: 178854kB/s, avg.load:100.9% >-.......................................-< 100% TOT: 0:00:00 dd_rescue: (info): hash(0): sha512 /tmp/dd_rescue (0-115016): f352d42f61a4a47564d66eae4a8ab8545e90224fdf589e7b2ba3beeff6851fb1fa2130974e752746ac4fef1ad6ba5640e1874e0104348d368b05cf352eeed8b1 dd_rescue: (warning): hash(0): Hash from xattr of /tmp/dd_rescue does not match dd_rescue: (warning): Plugin hash(0) reported error on close: Bad file descriptor! dd_rescue: (warning): There were 1 errors! ./dd_rescue -L ./libddr_hash.so=sha512:chk_xattr:fallback:prepend=abc:append=xyz /tmp/dd_rescue /dev/null dd_rescue: (info): Using softbs=128.0kiB, hardbs=4.0kiB dd_rescue: (warning): Not using sparse writes for non-seekable output dd_rescue: (info): expect to copy 112.3kiB from /tmp/dd_rescue dd_rescue: (info): read /tmp/dd_rescue (112.3kiB): EOF dd_rescue: (info): Summary for /tmp/dd_rescue -> /dev/null dd_rescue: (info): ipos: 112.3k, opos: 112.3k, xferd: 112.3k errs: 0, errxfer: 0.0k, succxfer: 112.3k +curr.rate: 184737kB/s, avg.rate: 184737kB/s, avg.load:100.8% >-.......................................-< 100% TOT: 0:00:00 dd_rescue: (info): hash(0): sha512 /tmp/dd_rescue (0-115019): eae5285aaf2db755e38406b3b03ebc4c512ccb85c9f9ffa6845c134f098e61827a1003d6f3054538933b9d5076c25cf1c02616cc60ac8d960e6f255933b9910c dd_rescue: (info): hash(0): Successfully validated hash from xattr for /tmp/dd_rescue # Extra xattrs (should be preserved) #make check_xattr_copy # Tests with HMAC echo "what do ya want for nothing?" > TEST echo "09d6428f7ebaf21a6b53d86c9699cca0 *TEST" > HMACS.md5 if test `stat -c %s TEST` == 29; then ./dd_rescue -L ./libddr_hash.so=md5:hmacpwd=Jefe:chknm= TEST /dev/null; else echo "WARN: TEST file has unexpected size, skipping HMAC test"; hexdump -C TEST; fi dd_rescue: (info): Using softbs=128.0kiB, hardbs=4.0kiB dd_rescue: (warning): Not using sparse writes for non-seekable output dd_rescue: (info): expect to copy 0.0kiB from TEST dd_rescue: (info): read TEST (0.0kiB): EOF dd_rescue: (info): Summary for TEST -> /dev/null dd_rescue: (info): ipos: 0.0k, opos: 0.0k, xferd: 0.0k errs: 0, errxfer: 0.0k, succxfer: 0.0k +curr.rate: 1011kB/s, avg.rate: 1011kB/s, avg.load:125.0% >-.......................................-< 100% TOT: 0:00:00 dd_rescue: (info): hash(0): md5 TEST (0-29): 6c8773df372da39f183d1ff449664b79 dd_rescue: (info): hash(0): HMAC md5 TEST (0-29): 09d6428f7ebaf21a6b53d86c9699cca0 rm -f /tmp/dd_rescue CHECKSUMS.sha512 TEST HMACS.md5 if ./calchmac.py sha1 pass dd_rescue; then make -f ./Makefile check_hmac; else echo "Sorry, no more HMAC test due to missing python-hashlib support"; true; fi File "./calchmac.py", line 42 print "%s *%s" %(hm.hexdigest(), fnm) ^ SyntaxError: invalid syntax Sorry, no more HMAC test due to missing python-hashlib support make -f ./Makefile check_fault make[1]: Entering directory '/var/tmp/portage/sys-fs/dd-rescue-1.99.8/work/dd_rescue-1.99.8' # Test fault injection # Only one fault, should be handled by retrying. ./dd_rescue -tpv -F 4r/1,6r/1,22r/1 dd_rescue dd_rescue.cmp || true dd_rescue: (debug): Inject r fault (1x) for range 4-5 dd_rescue: (debug): Inject r fault (1x) for range 6-7 dd_rescue: (debug): Inject r fault (1x) for range 22-23 dd_rescue: (debug): Will inject 3/0 faults for read/write dd_rescue: (info): Using softbs=128.0kiB, hardbs=4.0kiB dd_rescue: (info): expect to copy 112.3kiB from dd_rescue dd_rescue: (info): about to transfer unlim kiBytes from dd_rescue to dd_rescue.cmp dd_rescue: (info): blocksizes: soft 131072, hard 4096 dd_rescue: (info): starting positions: in 0.0kiB, out 0.0kiB dd_rescue: (info): Logfile: (none), Maxerr: 0 dd_rescue: (info): Reverse: no , Trunc: yes, interactive: no dd_rescue: (info): abort on Write errs: no , spArse write: if err dd_rescue: (info): preserve: yes, splice: no , avoidWrite: no dd_rescue: (info): fallocate: no , Repeat: no , O_DIRECT: no /no dd_rescue: (debug): Inject read fault @ 16384 (rd 32blk @ 0*4096) dd_rescue: (info): ipos: 0.0k, opos: 0.0k, xferd: 0.0k errs: 0, errxfer: 0.0k, succxfer: 0.0k +curr.rate: 0kB/s, avg.rate: 0kB/s, avg.load:158.3% dd_rescue: (info): problems at ipos 0.0kiB: Input/output error fall back to smaller blocksize dd_rescue: (info): ipos: 0.0k, opos: 0.0k, xferd: 0.0k * errs: 0, errxfer: 0.0k, succxfer: 0.0k +curr.rate: 0kB/s, avg.rate: 0kB/s, avg.load:112.1% dd_rescue: (info): read dd_rescue (112.3kiB): EOF dd_rescue: (info): ipos 112.3kiB promote to large bs again! dd_rescue: (info): read dd_rescue (112.3kiB): EOF dd_rescue: (info): Summary for dd_rescue -> dd_rescue.cmp dd_rescue: (info): ipos: 112.3k, opos: 112.3k, xferd: 112.3k errs: 0, errxfer: 0.0k, succxfer: 112.3k +curr.rate: 743843kB/s, avg.rate: 610436kB/s, avg.load:102.1% >-.......................................-< 100% TOT: 0:00:00 dd_rescue: (warning): There were 1 errors! cmp dd_rescue dd_rescue.cmp # Incremental ./dd_rescue -tp -F 4r/0,20r/0 -l dd_r.log -o dd_r.bb dd_rescue dd_rescue.cmp || true dd_rescue: (info): Using softbs=128.0kiB, hardbs=4.0kiB dd_rescue: (info): expect to copy 112.3kiB from dd_rescue dd_rescue: (info): ipos: 0.0k, opos: 0.0k, xferd: 0.0k errs: 0, errxfer: 0.0k, succxfer: 0.0k +curr.rate: 0kB/s, avg.rate: 0kB/s, avg.load:171.4% [A[A[Add_rescue: (info): ipos: 16.0k, opos: 16.0k, xferd: 16.0k * errs: 0, errxfer: 0.0k, succxfer: 16.0k +curr.rate: 421053kB/s, avg.rate: 355556kB/s, avg.load:111.1% >-....-...................................< 14% ETA: 0:00:00 dd_rescue: (warning): read dd_rescue (16.0kiB): Input/output error! dd_rescue: (warning): Bad block reading dd_rescue: 4 dd_rescue: (info): ipos: 80.0k, opos: 80.0k, xferd: 80.0k * errs: 1, errxfer: 4.0k, succxfer: 76.0k +curr.rate: 423172kB/s, avg.rate: 412371kB/s, avg.load:103.0% >-....x......................-............< 71% ETA: 0:00:00 dd_rescue: (warning): read dd_rescue (80.0kiB): Input/output error! dd_rescue: (warning): Bad block reading dd_rescue: 20 dd_rescue: (info): read dd_rescue (112.3kiB): EOF dd_rescue: (info): read dd_rescue (112.3kiB): EOF dd_rescue: (info): Summary for dd_rescue -> dd_rescue.cmp dd_rescue: (info): ipos: 112.3k, opos: 112.3k, xferd: 112.3k errs: 2, errxfer: 8.0k, succxfer: 104.3k +curr.rate: 381697kB/s, avg.rate: 348821kB/s, avg.load:101.5% >-....x......................x...........-< 100% TOT: 0:00:00 dd_rescue: (warning): There were 5 errors! ./dd_rescue -tp -F 4r/0,20r/0 dd_rescue dd_rescue.cmp || true dd_rescue: (info): Using softbs=128.0kiB, hardbs=4.0kiB dd_rescue: (info): expect to copy 112.3kiB from dd_rescue dd_rescue: (info): ipos: 0.0k, opos: 0.0k, xferd: 0.0k errs: 0, errxfer: 0.0k, succxfer: 0.0k +curr.rate: 0kB/s, avg.rate: 0kB/s, avg.load:171.4% [A[A[Add_rescue: (info): ipos: 16.0k, opos: 16.0k, xferd: 16.0k * errs: 0, errxfer: 0.0k, succxfer: 16.0k +curr.rate: 432432kB/s, avg.rate: 363636kB/s, avg.load:111.3% >-....-...................................< 14% ETA: 0:00:00 dd_rescue: (warning): read dd_rescue (16.0kiB): Input/output error! dd_rescue: (warning): Bad block reading dd_rescue: 4 dd_rescue: (info): ipos: 80.0k, opos: 80.0k, xferd: 80.0k * errs: 1, errxfer: 4.0k, succxfer: 76.0k +curr.rate: 487590kB/s, avg.rate: 563380kB/s, avg.load: 97.8% >-....x......................-............< 71% ETA: 0:00:00 dd_rescue: (warning): read dd_rescue (80.0kiB): Input/output error! dd_rescue: (warning): Bad block reading dd_rescue: 20 dd_rescue: (info): read dd_rescue (112.3kiB): EOF dd_rescue: (info): read dd_rescue (112.3kiB): EOF dd_rescue: (info): Summary for dd_rescue -> dd_rescue.cmp dd_rescue: (info): ipos: 112.3k, opos: 112.3k, xferd: 112.3k errs: 2, errxfer: 8.0k, succxfer: 104.3k +curr.rate: 473427kB/s, avg.rate: 517605kB/s, avg.load: 98.6% >-....x......................x...........-< 100% TOT: 0:00:00 dd_rescue: (warning): There were 5 errors! cmp dd_rescue dd_rescue.cmp || true dd_rescue dd_rescue.cmp differ: char 16385, line 34 ./dd_rescue -p -F 6r/0 dd_rescue dd_rescue.cmp || true dd_rescue: (info): Using softbs=128.0kiB, hardbs=4.0kiB dd_rescue: (info): expect to copy 112.3kiB from dd_rescue dd_rescue: (info): ipos: 0.0k, opos: 0.0k, xferd: 0.0k errs: 0, errxfer: 0.0k, succxfer: 0.0k +curr.rate: 0kB/s, avg.rate: 0kB/s, avg.load:216.6% [A[A[Add_rescue: (info): ipos: 24.0k, opos: 24.0k, xferd: 24.0k * errs: 0, errxfer: 0.0k, succxfer: 24.0k +curr.rate: 600000kB/s, avg.rate: 521739kB/s, avg.load:115.2% >-.......-................................< 21% ETA: 0:00:00 dd_rescue: (warning): read dd_rescue (24.0kiB): Input/output error! dd_rescue: (warning): Bad block reading dd_rescue: 6 dd_rescue: (info): read dd_rescue (112.3kiB): EOF dd_rescue: (info): read dd_rescue (112.3kiB): EOF dd_rescue: (info): Summary for dd_rescue -> dd_rescue.cmp dd_rescue: (info): ipos: 112.3k, opos: 112.3k, xferd: 112.3k errs: 1, errxfer: 4.0k, succxfer: 108.3k +curr.rate: 637119kB/s, avg.rate: 684880kB/s, avg.load:104.2% >-.......x...............................-< 100% TOT: 0:00:00 dd_rescue: (warning): There were 3 errors! cmp dd_rescue dd_rescue.cmp # Write errors: We recover from one of them ./dd_rescue -tp -F 4w/1,22w/1 dd_rescue dd_rescue.cmp || true dd_rescue: (info): Using softbs=128.0kiB, hardbs=4.0kiB dd_rescue: (info): expect to copy 112.3kiB from dd_rescue dd_rescue: (info): read dd_rescue (112.3kiB): EOF dd_rescue: (info): Summary for dd_rescue -> dd_rescue.cmp dd_rescue: (info): ipos: 112.3k, opos: 112.3k, xferd: 112.3k errs: 0, errxfer: 0.0k, succxfer: 112.3k +curr.rate: 1386671kB/s, avg.rate: 1386671kB/s, avg.load:107.4% >-.......................................-< 100% TOT: 0:00:00 # ./dd_rescue -p -F 6w/1 dd_rescue dd_rescue.cmp || true cmp dd_rescue dd_rescue.cmp # Write errors: Fill in ... ./dd_rescue -tp -b 16k -F 4w/2,22w/2 dd_rescue dd_rescue.cmp || true dd_rescue: (info): Using softbs=16.0kiB, hardbs=4.0kiB dd_rescue: (info): expect to copy 112.3kiB from dd_rescue dd_rescue: (warning): write dd_rescue.cmp (16.0kiB): Input/output error dd_rescue: (info): retrying writes with smaller blocks dd_rescue: (warning): assumption rd(16384) == wr(-5) failed! dd_rescue: (warning): write dd_rescue.cmp (16.0kiB): Input/output error! dd_rescue: (warning): write dd_rescue.cmp (80.0kiB): Input/output error dd_rescue: (info): retrying writes with smaller blocks dd_rescue: (warning): assumption rd(16384) == wr(-5) failed! dd_rescue: (warning): write dd_rescue.cmp (80.0kiB): Input/output error! dd_rescue: (info): ipos: 112.0k, opos: 112.0k, xferd: 112.0k errs: 2, errxfer: 0.0k, succxfer: 80.0k +curr.rate: 704403kB/s, avg.rate: 704403kB/s, avg.load:105.0% >-......................................-.< 99% ETA: 0:00:00 dd_rescue: (info): read dd_rescue (112.3kiB): EOF dd_rescue: (info): Summary for dd_rescue -> dd_rescue.cmp dd_rescue: (info): ipos: 112.3k, opos: 112.3k, xferd: 112.3k errs: 2, errxfer: 0.0k, succxfer: 80.3k +curr.rate: 530409kB/s, avg.rate: 570154kB/s, avg.load:104.0% >-......................................--< 100% TOT: 0:00:00 dd_rescue: (warning): There were 5 errors! ./dd_rescue -p -b 16k -F 12w/2 dd_rescue dd_rescue.cmp || true dd_rescue: (info): Using softbs=16.0kiB, hardbs=4.0kiB dd_rescue: (info): expect to copy 112.3kiB from dd_rescue dd_rescue: (warning): write dd_rescue.cmp (48.0kiB): Input/output error dd_rescue: (info): retrying writes with smaller blocks dd_rescue: (warning): assumption rd(16384) == wr(-5) failed! dd_rescue: (warning): write dd_rescue.cmp (48.0kiB): Input/output error! dd_rescue: (info): ipos: 112.0k, opos: 112.0k, xferd: 112.0k errs: 1, errxfer: 0.0k, succxfer: 96.0k +curr.rate: 1027523kB/s, avg.rate: 1027523kB/s, avg.load:106.4% >-......................................-.< 99% ETA: 0:00:00 dd_rescue: (info): read dd_rescue (112.3kiB): EOF dd_rescue: (info): Summary for dd_rescue -> dd_rescue.cmp dd_rescue: (info): ipos: 112.3k, opos: 112.3k, xferd: 112.3k errs: 1, errxfer: 0.0k, succxfer: 96.3k +curr.rate: 772930kB/s, avg.rate: 780002kB/s, avg.load:104.1% >-......................................--< 100% TOT: 0:00:00 dd_rescue: (warning): There were 3 errors! cmp dd_rescue dd_rescue.cmp # TODO: More fault injection tests! # Test reverse, holes, ... with faults # # TODO: Fault injection combined with # - encryption (check_crypt) # - compression # - checksums rm -f dd_rescue.cmp dd_r.log dd_r.bb make[1]: Leaving directory '/var/tmp/portage/sys-fs/dd-rescue-1.99.8/work/dd_rescue-1.99.8' #make -f ./Makefile check_aes make -f ./Makefile check_crypt make[1]: Entering directory '/var/tmp/portage/sys-fs/dd-rescue-1.99.8/work/dd_rescue-1.99.8' x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -I . -DHAVE_AESNI -fPIE -O3 -maes -msse4.1 -c aesni.c x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -I . -DHAVE_AESNI -fPIE -O3 -c aes_c.c fatal: not a git repository (or any parent up to mount point /var/tmp) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -I . -DHAVE_AESNI -DVERSION=\"1.99.8\" -D__COMPILER__="\"x86_64-pc-linux-gnu-gcc (Gentoo Hardened 9.2.0-r3 p4) 9.2.0\"" -DID=\"DD_RESCUE_1_99_8\" -fPIE -c secmem.c fatal: not a git repository (or any parent up to mount point /var/tmp) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -I . -DHAVE_AESNI -DVERSION=\"1.99.8\" -D__COMPILER__="\"x86_64-pc-linux-gnu-gcc (Gentoo Hardened 9.2.0-r3 p4) 9.2.0\"" -DID=\"DD_RESCUE_1_99_8\" -fPIE -c sha256.c fatal: not a git repository (or any parent up to mount point /var/tmp) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -I . -DHAVE_AESNI -DVERSION=\"1.99.8\" -D__COMPILER__="\"x86_64-pc-linux-gnu-gcc (Gentoo Hardened 9.2.0-r3 p4) 9.2.0\"" -DID=\"DD_RESCUE_1_99_8\" -fPIE -c aes.c x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -I . -DHAVE_AESNI -fPIE -pie -o test_aes test_aes.c aesni.o aes_c.o secmem.o sha256.o aes.o find_nonzero.o find_nonzero_sse2.o ffs_sse42.o rdrand.o find_nonzero_avx.o /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: find_nonzero.o:(.bss+0x3): multiple definition of `have_rdrand'; /var/tmp/portage/sys-fs/dd-rescue-1.99.8/temp/ccbJzXKm.o:(.bss+0x18b): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: find_nonzero.o:(.bss+0x2): multiple definition of `have_avx2'; /var/tmp/portage/sys-fs/dd-rescue-1.99.8/temp/ccbJzXKm.o:(.bss+0x18a): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: find_nonzero.o:(.bss+0x1): multiple definition of `have_aesni'; /var/tmp/portage/sys-fs/dd-rescue-1.99.8/temp/ccbJzXKm.o:(.bss+0x189): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: find_nonzero.o:(.bss+0x0): multiple definition of `have_sse42'; /var/tmp/portage/sys-fs/dd-rescue-1.99.8/temp/ccbJzXKm.o:(.bss+0x188): first defined here collect2: error: ld returned 1 exit status make[1]: *** [Makefile:372: test_aes] Error 1 make[1]: Leaving directory '/var/tmp/portage/sys-fs/dd-rescue-1.99.8/work/dd_rescue-1.99.8' make: *** [Makefile:515: check] Error 2 * ERROR: sys-fs/dd-rescue-1.99.8::gentoo failed (test phase): * emake failed * * If you need support, post the output of `emerge --info '=sys-fs/dd-rescue-1.99.8::gentoo'`, * the complete build log and the output of `emerge -pqv '=sys-fs/dd-rescue-1.99.8::gentoo'`. * The complete build log is located at '/var/log/portage/sys-fs:dd-rescue-1.99.8:20200201-191518.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/sys-fs/dd-rescue-1.99.8/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-fs/dd-rescue-1.99.8/temp/environment'. * Working directory: '/var/tmp/portage/sys-fs/dd-rescue-1.99.8/work/dd_rescue-1.99.8' * S: '/var/tmp/portage/sys-fs/dd-rescue-1.99.8/work/dd_rescue-1.99.8'