From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Price Date: Thu, 23 Jan 2020 15:55:39 +0000 Subject: [Cluster-devel] [PATCH 00/13] gfs2_edit restoremeta: Add bzip2 support Message-ID: <20200123155552.1080247-1-anprice@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit This patch set allows gfs2_edit restoremeta to read gfs2 metadata dumps that were compressed with bzip2. In doing so, it speeds up reading of metadata files by around 45% based on this test: $ time while read f; do gfs2_edit printsavedmeta $f &>/dev/null; done < metadata_files_for_comparison Andrew Price (13): restoremeta: Use zlib by file descriptor restoremeta: Abstract out metadata file opening restoremeta: Use metafd instead of gzFile for parameters restoremeta: Abstract out decompression operations restoremeta: Combine restore_init() and open_metadata() restoremeta: Don't seek in restore_header() savemeta: Remove anthropomorphize() restoremeta: Remove find_highest_block() restoremeta: Metadata file reading overhaul restoremeta: Convert iseof function to a flag restoremeta: Combine parse_header() and check_header() restoremeta: Add bzip2 support restoremeta: Skip the right number of bytes for the superblock configure.ac | 1 + gfs2/edit/Makefile.am | 2 + gfs2/edit/savemeta.c | 413 ++++++++++++++++++++++++------------------ tests/edit.at | 2 +- 4 files changed, 238 insertions(+), 180 deletions(-) -- 2.24.1