From patchwork Wed May 30 02:11:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huan Xu X-Patchwork-Id: 10437519 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 4E9C1602BF for ; Wed, 30 May 2018 02:23:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2E26628780 for ; Wed, 30 May 2018 02:23:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1E34928783; Wed, 30 May 2018 02:23:14 +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 734F5286DD for ; Wed, 30 May 2018 02:23:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751708AbeE3CXN (ORCPT ); Tue, 29 May 2018 22:23:13 -0400 Received: from mail.cn.fujitsu.com ([183.91.158.132]:18525 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750821AbeE3CXM (ORCPT ); Tue, 29 May 2018 22:23:12 -0400 X-IronPort-AV: E=Sophos;i="5.43,368,1503331200"; d="scan'208";a="40550493" Received: from bogon (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 30 May 2018 10:23:07 +0800 Received: from G08CNEXCHPEKD03.g08.fujitsu.local (unknown [10.167.33.85]) by cn.fujitsu.com (Postfix) with ESMTP id B2E4B4B41E69 for ; Wed, 30 May 2018 10:23:04 +0800 (CST) Received: from RHEL7U5Alpha_SERVER.g08.fujitsu.local (10.167.220.185) by G08CNEXCHPEKD03.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.399.0; Wed, 30 May 2018 10:23:04 +0800 From: Huan Xu To: CC: Xu Huan Subject: [PATCH] fix generic 401 on fs without filesystem support Date: Wed, 30 May 2018 10:11:07 +0800 Message-ID: <1527646267-2257-1-git-send-email-xuhuan.fnst@cn.fujitsu.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 X-Originating-IP: [10.167.220.185] X-yoursite-MailScanner-ID: B2E4B4B41E69.A4A72 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: xuhuan.fnst@cn.fujitsu.com Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Xu Huan in generic 401 when test on fs without filesystem support list DT_UNKNOWN file . and .. , then list all file without . and .. following is test result on nfs generic/401 QA output created by 401 . d .. d - output mismatch (see /var/lib/xfstests/results//generic/401.out.bad) --- tests/generic/401.out 2018-05-22 04:22:11.641999979 -0400 +++ /var/lib/xfstests/results//generic/401.out.bad 2018-05-28 23:22:42.312999931 -0400 @@ -1,9 +1,3 @@ QA output created by 401 . d .. d -b b -c c -d d -f f --- tests/generic/401 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/generic/401 b/tests/generic/401 index 74f2bea5..26938864 100755 --- a/tests/generic/401 +++ b/tests/generic/401 @@ -86,8 +86,8 @@ else # print fake dir file type for . and .. if they are DT_UNKNOWN src/t_dir_type $testdir u | grep -F '.' | \ awk '{ print $1, "d" }' | sort - # list unknown files and print filename as fake file type - src/t_dir_type $testdir u | grep -vF '.' | \ + # list all files without . and .. and print filename as fake file type + src/t_dir_type $testdir | grep -vF '.' | \ awk '{ print $1, $1 }' | sort fi