cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [Cluster-devel] [PATCH 00/13] gfs2_edit restoremeta: Add bzip2 support
@ 2020-01-23 15:55 Andrew Price
  2020-01-23 15:55 ` [Cluster-devel] [PATCH 01/13] restoremeta: Use zlib by file descriptor Andrew Price
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: Andrew Price @ 2020-01-23 15:55 UTC (permalink / raw)
  To: cluster-devel.redhat.com

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



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2020-01-23 15:55 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-23 15:55 [Cluster-devel] [PATCH 00/13] gfs2_edit restoremeta: Add bzip2 support Andrew Price
2020-01-23 15:55 ` [Cluster-devel] [PATCH 01/13] restoremeta: Use zlib by file descriptor Andrew Price
2020-01-23 15:55 ` [Cluster-devel] [PATCH 02/13] restoremeta: Abstract out metadata file opening Andrew Price
2020-01-23 15:55 ` [Cluster-devel] [PATCH 03/13] restoremeta: Use metafd instead of gzFile for parameters Andrew Price
2020-01-23 15:55 ` [Cluster-devel] [PATCH 04/13] restoremeta: Abstract out decompression operations Andrew Price
2020-01-23 15:55 ` [Cluster-devel] [PATCH 05/13] restoremeta: Combine restore_init() and open_metadata() Andrew Price
2020-01-23 15:55 ` [Cluster-devel] [PATCH 06/13] restoremeta: Don't seek in restore_header() Andrew Price
2020-01-23 15:55 ` [Cluster-devel] [PATCH 07/13] savemeta: Remove anthropomorphize() Andrew Price
2020-01-23 15:55 ` [Cluster-devel] [PATCH 08/13] restoremeta: Remove find_highest_block() Andrew Price
2020-01-23 15:55 ` [Cluster-devel] [PATCH 09/13] restoremeta: Metadata file reading overhaul Andrew Price
2020-01-23 15:55 ` [Cluster-devel] [PATCH 10/13] restoremeta: Convert iseof function to a flag Andrew Price
2020-01-23 15:55 ` [Cluster-devel] [PATCH 11/13] restoremeta: Combine parse_header() and check_header() Andrew Price
2020-01-23 15:55 ` [Cluster-devel] [PATCH 12/13] restoremeta: Add bzip2 support Andrew Price
2020-01-23 15:55 ` [Cluster-devel] [PATCH 13/13] restoremeta: Skip the right number of bytes for the superblock Andrew Price

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).