From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx2.suse.de ([195.135.220.15]:33310 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750810AbdLEIjy (ORCPT ); Tue, 5 Dec 2017 03:39:54 -0500 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id ED420ABCF for ; Tue, 5 Dec 2017 08:39:52 +0000 (UTC) From: Nikolay Borisov To: linux-btrfs@vger.kernel.org Cc: Nikolay Borisov Subject: [PATCH 0/7] Misc btrfs-progs cleanups/fixes Date: Tue, 5 Dec 2017 10:39:42 +0200 Message-Id: <1512463189-24724-1-git-send-email-nborisov@suse.com> Sender: linux-btrfs-owner@vger.kernel.org List-ID: Here is a series doing some minor code cleanups, hopefully making the code more idiomatic and easier to follow. They should be pretty low-risk and introduce no functional changes (patches 1-5). The the last 2 patches deal with a regression of btrfs rescue super-recovery. Turns out this was broken for sometime. Patch 6 introduces a regression test which hopefully will prevent further occurences and patch 7 fixes the actual bug. Nikolay Borisov (7): btrfs-progs: Explictly state test.sh must be executable btrfs-progs: Factor out common print_device_info btrfs-progs: Remove recover_get_good_super btrfs-progs: Use list_for_each_entry in write_dev_all_supers btrfs-progs: Document logic of btrfs_read_dev_super btrfs-progs: Add test for super block recovery btrfs-progs: Fix super-recovery chunk-recover.c | 18 ------- disk-io.c | 21 ++++++-- super-recover.c | 28 ++--------- tests/README.md | 4 +- tests/fsck-tests/029-superblock-recovery/test.sh | 64 ++++++++++++++++++++++++ utils.c | 18 +++++++ utils.h | 3 ++ 7 files changed, 110 insertions(+), 46 deletions(-) create mode 100755 tests/fsck-tests/029-superblock-recovery/test.sh -- 2.7.4