From 9c1a53635e213f76ee865b0cde47dbbb3a7f2e49 Mon Sep 17 00:00:00 2001 From: David Bremner Date: Wed, 2 Apr 2014 22:16:15 +2100 Subject: [PATCH] v5 gzip / dump restore --- f8/9364bffb9723f23f72830975611afa95bb22bf | 78 +++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 f8/9364bffb9723f23f72830975611afa95bb22bf diff --git a/f8/9364bffb9723f23f72830975611afa95bb22bf b/f8/9364bffb9723f23f72830975611afa95bb22bf new file mode 100644 index 000000000..570b08cc9 --- /dev/null +++ b/f8/9364bffb9723f23f72830975611afa95bb22bf @@ -0,0 +1,78 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 153A2431FC2 + for ; Tue, 1 Apr 2014 18:16:39 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id dHAO3VpIbvzw for ; + Tue, 1 Apr 2014 18:16:35 -0700 (PDT) +Received: from yantan.tethera.net (yantan.tethera.net [199.188.72.155]) + (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 9BB7B431FBF + for ; Tue, 1 Apr 2014 18:16:35 -0700 (PDT) +Received: from remotemail by yantan.tethera.net with local (Exim 4.80) + (envelope-from ) id 1WV9n4-00072R-80 + for notmuch@notmuchmail.org; Tue, 01 Apr 2014 22:16:30 -0300 +Received: (nullmailer pid 18494 invoked by uid 1000); Wed, 02 Apr 2014 + 01:16:26 -0000 +From: David Bremner +To: notmuch@notmuchmail.org +Subject: v5 gzip / dump restore +Date: Tue, 1 Apr 2014 22:16:15 -0300 +Message-Id: <1396401381-18128-1-git-send-email-david@tethera.net> +X-Mailer: git-send-email 1.9.0 +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Wed, 02 Apr 2014 01:16:39 -0000 + +This supercedes + + id:1396200700-29361-2-git-send-email-david@tethera.net + +This is the first version to include the actual automatic backup +before a database upgrade. + +The following are new compared to the previous version; the other +patches have only small changes, if any. + + [Patch v5 2/6] dump: when given output file name, write atomically + [Patch v5 5/6] notmuch-new: backup tags before database upgrade + [Patch v5 6/6] test: verify tag backup generated by database upgrade + +diff versus master + + INSTALL | 17 +++++++--- + Makefile.local | 2 +- + configure | 28 ++++++++++++++-- + doc/man1/notmuch-dump.rst | 3 ++ + doc/man1/notmuch-restore.rst | 8 +++++ + notmuch-client.h | 4 ++- + notmuch-dump.c | 89 ++++++++++++++++++++++++++++++++++++++----------- + notmuch-new.c | 29 +++++++++++++++- + notmuch-restore.c | 37 +++++++++++--------- + test/T240-dump-restore.sh | 26 +++++++++++++++ + test/T530-upgrade.sh | 10 +++++- + util/Makefile.local | 2 +- + util/util.h | 12 +++++++ + util/zlib-extra.c | 76 +++++++++++++++++++++++++++++++++++++++++ + util/zlib-extra.h | 11 ++++++ + 15 files changed, 307 insertions(+), 47 deletions(-) -- 2.26.2