From patchwork Tue Oct 16 07:45:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhang Yi X-Patchwork-Id: 10643179 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id ADDFF157A for ; Tue, 16 Oct 2018 07:32:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8E53A298E5 for ; Tue, 16 Oct 2018 07:32:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 826D629A02; Tue, 16 Oct 2018 07:32:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7F71229A1E for ; Tue, 16 Oct 2018 07:32:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726976AbeJPPVm (ORCPT ); Tue, 16 Oct 2018 11:21:42 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:14078 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726729AbeJPPVm (ORCPT ); Tue, 16 Oct 2018 11:21:42 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id CCA2D48BACF3A; Tue, 16 Oct 2018 15:32:32 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.399.0; Tue, 16 Oct 2018 15:32:24 +0800 From: "zhangyi (F)" To: , CC: , , , Subject: [PATCH v2 0/4] overlay: enhance fsck.overlay test cases Date: Tue, 16 Oct 2018 15:45:55 +0800 Message-ID: <20181016074559.24728-1-yi.zhang@huawei.com> X-Mailer: git-send-email 2.14.4 MIME-Version: 1.0 X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi all, These are the second version of fsck.overlay[1] program related patch set (the first one was posted about two mounths ago[2], sorry for the late). I have fix all comments as Amir suggested and looks fine after test. The first two patches correct the exit code and fix the tests failure with master branch of fsck.overlay, and the last two patches were just want to test stability and exception handling processes. Hi Amir, Patch 1 and 2 will fix the test failure you mentioned yesterday when you run -g overlay/fsck with fsck.overlay's master branch. I am very grateful if you can give a review. Thanks, Yi. Changes from v1: - split patch 2 from patch 1 for readable. - move exit code definitions from common/config to common/overlay. - factor out a common function _run_check_fsck() to fsck and check return value. - fix some mistakes in patch 3 and 4. [1] https://github.com/hisilicon/overlayfs-progs/commits/master [2] https://www.spinics.net/lists/fstests/msg10267.html zhangyi (F) (4): overlay: correct fsck.overlay exit code overlay: fix exit code for some fsck.overlay valid cases overlay: add fsck.overlay stress test overlay: add fsck.overlay exception tests common/overlay | 37 ++++++++- tests/overlay/045 | 46 ++++++----- tests/overlay/046 | 49 ++++++------ tests/overlay/056 | 9 +-- tests/overlay/062 | 84 +++++++++++++++++++ tests/overlay/062.out | 2 + tests/overlay/063 | 217 ++++++++++++++++++++++++++++++++++++++++++++++++++ tests/overlay/063.out | 10 +++ tests/overlay/group | 2 + 9 files changed, 403 insertions(+), 53 deletions(-) create mode 100755 tests/overlay/062 create mode 100644 tests/overlay/062.out create mode 100755 tests/overlay/063 create mode 100644 tests/overlay/063.out