git: hammer2 - Add decompression support to the recovery code

Matthew Dillon dillon at crater.dragonflybsd.org
Fri Sep 29 14:18:38 PDT 2023


commit 3aa7d58aaff6ab8ddbde281fd648e7697e72a93a
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Fri Sep 29 13:42:57 2023 -0700

    hammer2 - Add decompression support to the recovery code
    
    * Decompress LZ4 and ZLIB-compressed data blocks when writing
      out results.  Was previously leaving the blocks in a compressed
      form, resulting in numerous garbage-looking files.

Summary of changes:
 sbin/hammer2/Makefile                              |  17 ++-
 sbin/hammer2/cmd_recover.c                         |  37 +++++-
 .../{cmd_snapshot.c => hammer2_compression.c}      | 125 +++++++++++----------
 sbin/hammer2/hammer2_subs.h                        |   6 +
 .../vfs/hammer2 => sbin/hammer2/lz4}/hammer2_lz4.c |  17 ++-
 .../vfs/hammer2 => sbin/hammer2/lz4}/hammer2_lz4.h |   0
 .../hammer2/lz4}/hammer2_lz4_encoder.h             |   0
 {sys/vfs => sbin}/hammer2/zlib/hammer2_zlib.h      |   0
 .../hammer2/zlib/hammer2_zlib_adler32.c            |   0
 .../hammer2/zlib/hammer2_zlib_deflate.c            |  25 ++---
 .../hammer2/zlib/hammer2_zlib_deflate.h            |   0
 .../hammer2/zlib/hammer2_zlib_inffast.c            |   6 +-
 .../hammer2/zlib/hammer2_zlib_inffast.h            |   0
 .../hammer2/zlib/hammer2_zlib_inffixed.h           |   0
 .../hammer2/zlib/hammer2_zlib_inflate.c            |  63 ++++++-----
 .../hammer2/zlib/hammer2_zlib_inflate.h            |   0
 .../hammer2/zlib/hammer2_zlib_inftrees.c           |   0
 .../hammer2/zlib/hammer2_zlib_inftrees.h           |   0
 .../vfs => sbin}/hammer2/zlib/hammer2_zlib_trees.c |   0
 .../vfs => sbin}/hammer2/zlib/hammer2_zlib_trees.h |   1 -
 .../vfs => sbin}/hammer2/zlib/hammer2_zlib_zconf.h |   0
 .../vfs => sbin}/hammer2/zlib/hammer2_zlib_zutil.c |   0
 .../vfs => sbin}/hammer2/zlib/hammer2_zlib_zutil.h |   0
 23 files changed, 178 insertions(+), 119 deletions(-)
 copy sbin/hammer2/{cmd_snapshot.c => hammer2_compression.c} (50%)
 copy {sys/vfs/hammer2 => sbin/hammer2/lz4}/hammer2_lz4.c (98%)
 copy {sys/vfs/hammer2 => sbin/hammer2/lz4}/hammer2_lz4.h (100%)
 copy {sys/vfs/hammer2 => sbin/hammer2/lz4}/hammer2_lz4_encoder.h (100%)
 copy {sys/vfs => sbin}/hammer2/zlib/hammer2_zlib.h (100%)
 copy {sys/vfs => sbin}/hammer2/zlib/hammer2_zlib_adler32.c (100%)
 copy {sys/vfs => sbin}/hammer2/zlib/hammer2_zlib_deflate.c (97%)
 copy {sys/vfs => sbin}/hammer2/zlib/hammer2_zlib_deflate.h (100%)
 copy {sys/vfs => sbin}/hammer2/zlib/hammer2_zlib_inffast.c (98%)
 copy {sys/vfs => sbin}/hammer2/zlib/hammer2_zlib_inffast.h (100%)
 copy {sys/vfs => sbin}/hammer2/zlib/hammer2_zlib_inffixed.h (100%)
 copy {usr.sbin/makefs => sbin}/hammer2/zlib/hammer2_zlib_inflate.c (95%)
 copy {sys/vfs => sbin}/hammer2/zlib/hammer2_zlib_inflate.h (100%)
 copy {sys/vfs => sbin}/hammer2/zlib/hammer2_zlib_inftrees.c (100%)
 copy {sys/vfs => sbin}/hammer2/zlib/hammer2_zlib_inftrees.h (100%)
 copy {sys/vfs => sbin}/hammer2/zlib/hammer2_zlib_trees.c (100%)
 copy {sys/vfs => sbin}/hammer2/zlib/hammer2_zlib_trees.h (99%)
 copy {sys/vfs => sbin}/hammer2/zlib/hammer2_zlib_zconf.h (100%)
 copy {sys/vfs => sbin}/hammer2/zlib/hammer2_zlib_zutil.c (100%)
 copy {sys/vfs => sbin}/hammer2/zlib/hammer2_zlib_zutil.h (100%)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3aa7d58aaff6ab8ddbde281fd648e7697e72a93a


-- 
DragonFly BSD source repository


More information about the Commits mailing list