From patchwork Mon May 4 22:01:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dave Chinner X-Patchwork-Id: 6330401 Return-Path: X-Original-To: patchwork-fstests@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 56F22BEEE1 for ; Mon, 4 May 2015 22:01:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4B6CF20270 for ; Mon, 4 May 2015 22:01:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 592C3202BE for ; Mon, 4 May 2015 22:01:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751504AbbEDWBw (ORCPT ); Mon, 4 May 2015 18:01:52 -0400 Received: from ipmail07.adl2.internode.on.net ([150.101.137.131]:33469 "EHLO ipmail07.adl2.internode.on.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751403AbbEDWBv (ORCPT ); Mon, 4 May 2015 18:01:51 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2BdBgAp60dV/38+LHlcgwyBL7N/Bpp6TQEBAQEBAYELhCEBBVYzCBgxOQMbGYgqxwuGF4pEhBcFsn0jYGYBC4I0LDGCRQEBAQ Received: from ppp121-44-62-127.lns20.syd4.internode.on.net (HELO dastard) ([121.44.62.127]) by ipmail07.adl2.internode.on.net with ESMTP; 05 May 2015 07:31:49 +0930 Received: from disappointment.disaster.area ([192.168.1.110] helo=disappointment) by dastard with esmtp (Exim 4.80) (envelope-from ) id 1YpOQi-0005az-K7 for fstests@vger.kernel.org; Tue, 05 May 2015 08:01:36 +1000 Received: from dave by disappointment with local (Exim 4.82_1-5b7a7c0-XX) (envelope-from ) id 1YpOQi-0006gB-JP for fstests@vger.kernel.org; Tue, 05 May 2015 08:01:36 +1000 From: Dave Chinner To: fstests@vger.kernel.org Subject: [PATCH 1/4] filter: latest mkfs.xfs makes logical sector size noise Date: Tue, 5 May 2015 08:01:30 +1000 Message-Id: <1430776893-25158-2-git-send-email-david@fromorbit.com> X-Mailer: git-send-email 2.0.0 In-Reply-To: <1430776893-25158-1-git-send-email-david@fromorbit.com> References: <1430776893-25158-1-git-send-email-david@fromorbit.com> Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Dave Chinner On devices that have a logical sector smaller than physical sector, this extra, harmless output now occurs: QA output created by 060 +specified blocksize 1024 is less than device physical sector size 4096 +switching to logical sector size 512 Creating directory system to dump using src/fill. Setup ....................................... Dumping to files... And it causes lots of tests to fail unnecessarily. Filter it. Signed-off-by: Dave Chinner Reviewed-by: Eric Sandeen --- common/rc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/common/rc b/common/rc index 6ea107e..242dedb 100644 --- a/common/rc +++ b/common/rc @@ -365,9 +365,12 @@ _scratch_mkfs_xfs() mkfs_status=$? fi - # output stored mkfs output - cat $tmp_dir.mkfserr >&2 + # output stored mkfs output, filtering unnecessary warnings from stderr cat $tmp_dir.mkfsstd + cat $tmp_dir.mkfserr | sed \ + -e '/less than device physical sector/d' \ + -e '/switching to logical sector/d' \ + >&2 rm -f $tmp_dir.mkfserr $tmp_dir.mkfsstd return $mkfs_status