From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47959) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fajG5-0001uQ-Ls for qemu-devel@nongnu.org; Wed, 04 Jul 2018 10:59:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fajG4-00076e-UO for qemu-devel@nongnu.org; Wed, 04 Jul 2018 10:59:53 -0400 From: Ari Sundholm Date: Wed, 4 Jul 2018 17:59:33 +0300 Message-ID: <1530716376-2235-1-git-send-email-ari@tuxera.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH v2 0/3] blklogwrites improvements List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Ari Sundholm , Kevin Wolf , Max Reitz , qemu-block@nongnu.org This patch set contains a trivial printf format fix, followed by two new features for the blklogwrites driver. The first feature is an option to append to an existing log, adopting its sector size and other metadata in its superblock. This can be useful, and was suggested by Kevin Wolf. The second feature is an option for specifying how often the log superblock is updated, in terms of number of total write entries logged. This ensures that the log superblock is relatively up-to-date even in the face of abnormal QEMU shutdown. v2: - Fix error path of log superblock update interval set to 0 Based-on: <1530629328-10193-1-git-send-email-ari@tuxera.com> Ari Sundholm (3): block/blklogwrites: Change log_sector_size from int64_t to uint64_t block/blklogwrites: Add an option for appending to an old log block/blklogwrites: Add an option for the update interval of the log superblock block/blklogwrites.c | 171 +++++++++++++++++++++++++++++++++++++++++++++------ qapi/block-core.json | 7 ++- 2 files changed, 158 insertions(+), 20 deletions(-) -- 2.7.4