From patchwork Tue Mar 7 08:55:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zorro Lang X-Patchwork-Id: 9608299 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DC513604DC for ; Tue, 7 Mar 2017 08:57:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D2D8120564 for ; Tue, 7 Mar 2017 08:57:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C7C25205AB; Tue, 7 Mar 2017 08:57:01 +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=-6.9 required=2.0 tests=BAYES_00,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 520C826E4F for ; Tue, 7 Mar 2017 08:57:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754881AbdCGI5B (ORCPT ); Tue, 7 Mar 2017 03:57:01 -0500 Received: from mx1.redhat.com ([209.132.183.28]:46592 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755034AbdCGI5A (ORCPT ); Tue, 7 Mar 2017 03:57:00 -0500 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 117BF7298D for ; Tue, 7 Mar 2017 08:55:17 +0000 (UTC) Received: from dhcp-12-168.nay.redhat.com (dhcp-12-168.nay.redhat.com [10.66.12.168]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id v278tFkg023821; Tue, 7 Mar 2017 03:55:16 -0500 From: Zorro Lang To: fstests@vger.kernel.org Cc: zlang@redhat.com Subject: [PATCH v2] generic/409-411: remove all after unbind mountpoints Date: Tue, 7 Mar 2017 16:55:12 +0800 Message-Id: <1488876912-23775-1-git-send-email-zlang@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Tue, 07 Mar 2017 08:55:17 +0000 (UTC) Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP After some shared subtrees test (bind/slave/shared/private), maybe some dentries isn't freed. For example, EBUSY maybe returned due to some bugs. This patch tries to verify that. Signed-off-by: Zorro Lang --- tests/generic/409 | 3 +++ tests/generic/410 | 3 +++ tests/generic/411 | 3 +++ 3 files changed, 9 insertions(+) diff --git a/tests/generic/409 b/tests/generic/409 index d7c39d6..4bfedf7 100755 --- a/tests/generic/409 +++ b/tests/generic/409 @@ -48,6 +48,8 @@ _cleanup() cd / rm -f $tmp.* _clear_mount_stack + # make sure there's no bug cause dentry isn't be freed + rm -rf $MNTHEAD } # get standard environment, filters and checks @@ -87,6 +89,7 @@ fs_stress() # prepare some mountpoint dir MNTHEAD=$TEST_DIR/$seq +rm -rf $MNTHEAD mkdir $MNTHEAD 2>>$seqres.full mpA=$MNTHEAD/"$$"_mpA mpB=$MNTHEAD/"$$"_mpB diff --git a/tests/generic/410 b/tests/generic/410 index e627cfe..f2e0d1b 100755 --- a/tests/generic/410 +++ b/tests/generic/410 @@ -56,6 +56,8 @@ _cleanup() cd / rm -f $tmp.* _clear_mount_stack + # make sure there's no bug cause dentry isn't be freed + rm -rf $MNTHEAD } # get standard environment, filters and checks @@ -95,6 +97,7 @@ fs_stress() # prepare some mountpoint dir MNTHEAD=$TEST_DIR/$seq +rm -rf $MNTHEAD mkdir $MNTHEAD 2>>$seqres.full mpA=$MNTHEAD/"$$"_mpA mpB=$MNTHEAD/"$$"_mpB diff --git a/tests/generic/411 b/tests/generic/411 index 414d3a5..7b2dd33 100755 --- a/tests/generic/411 +++ b/tests/generic/411 @@ -37,6 +37,8 @@ _cleanup() cd / rm -f $tmp.* _clear_mount_stack + # make sure there's no bug cause dentry isn't be freed + rm -rf $MNTHEAD } # get standard environment, filters and checks @@ -78,6 +80,7 @@ fs_stress() # prepare some mountpoint dir MNTHEAD=$TEST_DIR/$seq +rm -rf $MNTHEAD mkdir $MNTHEAD 2>>$seqres.full mpA=$MNTHEAD/"$$"_mpA mpB=$MNTHEAD/"$$"_mpB