From patchwork Mon Dec 15 22:26:35 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dushan Tcholich X-Patchwork-Id: 5497561 Return-Path: X-Original-To: patchwork-fstests@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 8A3259F30B for ; Mon, 15 Dec 2014 20:26:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BD40C209F5 for ; Mon, 15 Dec 2014 20:26:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EC545209EB for ; Mon, 15 Dec 2014 20:26:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750940AbaLOU0I (ORCPT ); Mon, 15 Dec 2014 15:26:08 -0500 Received: from mail-wi0-f181.google.com ([209.85.212.181]:62726 "EHLO mail-wi0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750786AbaLOU0I (ORCPT ); Mon, 15 Dec 2014 15:26:08 -0500 Received: by mail-wi0-f181.google.com with SMTP id r20so10334258wiv.8 for ; Mon, 15 Dec 2014 12:26:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:user-agent:mime-version :content-type; bh=8rNmE3+lWuV771wCcrhg45WMQ3PRtmaNlI0zkIFgVM8=; b=IwME7vJYM2co+xahc85SZiPSDfABx3TRwD4BCrzv79pvYEaQ65HkidPvjd0/UGzo4M 3b9rmdiTWWs114tk9qk1Tu8yDxt1Ty7v7G7PJOCm/kRWhA+N/aeJEXmwfc/aM0J+RMuP n6zlCbuA6gsrBVyZ4GKCCDEzmguCYvp3t8Qqx7d0JOAaknfkfsLzu3aw9PO1c35QRVBG dO0RvJ3z+ov6EqX3sIu2GVvDDjaOFfkLvQZXWkOowimDzMpvAbIqEylCPrQjCD/6HHGI slNsOw14/fjerCNBnyMZ2z3c2SNuyNHtVN5GgzCXkC4ym6iWLrsNSaCryBgzw8AEy14L FXRg== X-Received: by 10.194.184.199 with SMTP id ew7mr56536035wjc.85.1418675165274; Mon, 15 Dec 2014 12:26:05 -0800 (PST) Received: from [192.168.0.2] (178-222-112-234.dynamic.isp.telekom.rs. [178.222.112.234]) by mx.google.com with ESMTPSA id ex8sm14286931wjd.41.2014.12.15.12.26.04 for (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128/128); Mon, 15 Dec 2014 12:26:04 -0800 (PST) Date: Mon, 15 Dec 2014 23:26:35 +0100 (CET) From: Dushan Tcholich X-X-Sender: root@reiser4.gekom To: fstests@vger.kernel.org Subject: [PATCH] generic/038: require fallocate support and test for trim support Message-ID: User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, 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 Add tests for allocate support and test if TRIM really works on tested partition. Signed-off-by: Dushan Tcholich --- To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- xfstests.orig/tests/generic/038 2014-12-14 15:18:00.000000000 +0100 +++ xfstests/tests/generic/038 2014-12-15 23:21:11.000000000 +0100 @@ -70,6 +70,10 @@ _supported_os Linux _require_scratch _require_fstrim +_require_xfs_io_command "falloc" +_require_xfs_io_command "truncate" + +_test_batched_discard $SCRATCH_MNT || _notrun "FITRIM not supported on $SCRATCH_DEV" rm -f $seqres.full