Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp320653iog; Wed, 15 Jun 2022 02:59:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9VuXouMPwSB8e14ekMBYaUHDqHdpM9ynRt5187oyIrstxvVNkFYAs+5MjOtIvude0o3mo X-Received: by 2002:a05:6402:1cb5:b0:42d:ddda:7459 with SMTP id cz21-20020a0564021cb500b0042dddda7459mr11829804edb.16.1655287171476; Wed, 15 Jun 2022 02:59:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655287171; cv=none; d=google.com; s=arc-20160816; b=ARoK6AmE6ntxq5jAzG6jg+moKIpUybv+Mn9da5GznIVVFIXDl1T67lhi1lloRQQumV bSSR/vl1eBpAO9XLrI6zR7QzjAn/XIVNXpgdGuLu/q8kklJBZ38KgVpo8VOoZ5CFONt7 1fQrirM9EzZ82Ph1eMIQIP6LRBPUa2pM76lHNdhdI/WUDJKKTxYZYSeWJbYMWRTwLPC5 grm+1YDExxG+mowQm0A8vWRk9Nh+QP0AN/jPnVHpX70J54zEmGHDe541tDP1Jyb7r08n HlyISZjYzbNY3ORWk18HIHaNK6+nHDk8PWJVkrOBt1lNj5BEt26O5YUj10712dLbMm9A z83w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=tk97Mzpk2TCu1CIkTFMgyvWio0tuHb36W0Vjt07vnhM=; b=vj1cw/PIqpuLqG6jBIQMv+Gw9W/qXTG/2npTtH3Et6rG8/CsUZ/LdYVlH2zoNQ5Nik a0Jb4wXIt0xiY0wB2jsyctd4fMCPqrH6qfBJ+CB/BuylU5CwZeW4QZSFZXk+aJ85wmec KDoL4kosmeC2Vn4ACnYaYCzhCS+T86wWlYfvaMn5MJZKeUuCqD+j5s0LFqjxJ497BPe0 meZEB2UDiulbZSURrq7k0ZOvmc84iQvvf6Pkb3UE35EUzIFjkaP+F+zvh65krp/8Mbvr zzGQTftIC+/kUorNm6oz3wJLaSaIrPQoa3P6DlSzImdD9SzDi55B3hov2Jq6Z42Y02dY 6acw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UZ18s2nl; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e9-20020a170906648900b006e8d07f934dsi11820058ejm.45.2022.06.15.02.59.00; Wed, 15 Jun 2022 02:59:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UZ18s2nl; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243327AbiFOJ4R (ORCPT + 99 others); Wed, 15 Jun 2022 05:56:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237420AbiFOJ4Q (ORCPT ); Wed, 15 Jun 2022 05:56:16 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FEBF49B59; Wed, 15 Jun 2022 02:56:16 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id CE8D6B81C62; Wed, 15 Jun 2022 09:56:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9DB5FC34115; Wed, 15 Jun 2022 09:56:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655286973; bh=ZhDBRgQU7ZcI9kZgJu86+5uy/cAyHPmmrrm4MdoMzic=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UZ18s2nlPinYpFsreuxH/N3n6o1GGraB0CtE35X727U/GrkcexK1hPokbY41+Eudm 6EGsZKNg2YawcQPZMa6AclhI1nTS4+X2MsBG4XLI1yW2KqU9kReFbYu6ZX07MuFymB GwTIP1vawNFSEb+H4t4lHhNh+LsEmBmdecOGnieT5gZUnDX1p+xc89bapP2/w6ECKb 9p5L28unvjqlcQ5TXO0ATnPLJFqdWA06mHUbzqGbdWXVXfcZFN8EDwcq2oM3UvlQYc 211BuFbgvLu22KO9zNuYjMN1oah0N0epuNjAzOzdI20QnKhGTJ/2LfC8GjqyaoFPnp iUWiyf3nhc57Q== Date: Wed, 15 Jun 2022 17:56:07 +0800 From: Zorro Lang To: Ojaswin Mujoo Cc: fstests@vger.kernel.org, zlang@redhat.com, riteshh@linux.ibm.com, linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] common/rc: Modify _require_batched_discard to improve test coverage Message-ID: <20220615095607.zkvq2vnh4ebue3qi@zlang-mailbox> References: <20220516084505.97655-1-ojaswin@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Mon, Jun 13, 2022 at 02:05:34PM +0530, Ojaswin Mujoo wrote: > Greetings, > > Please let me know if there are any reviews/suggestions on this > patch. This patch has been merged in fstests v2022.05.22, as below ee264b3f common/rc: Modify _require_batched_discard to improve test coverage Is there anything wrong with that? Thanks, Zorro > > Thank you! > > On Mon, May 16, 2022 at 02:15:05PM +0530, Ojaswin Mujoo wrote: > > A recent ext4 patch discussed [1] that some devices (eg LVMs) can > > have a discard granularity as big as 42MB which makes it larger > > than the group size of ext4 FS with 1k BS. This causes the FITRIM > > IOCTL to fail. > > > > This case was not correctly handled by this test since > > "_require_batched_discard" incorrectly interpreted the FITRIM > > failure as SCRATCH_DEV not supporting the IOCTL. This caused the test > > to report "not run" instead of "failed" in case of large discard granularity. > > > > Fix "_require_batched_discard" to use a more accurate method > > to determine if discard is supported. > > > > [1] commit 173b6e383d2 > > ext4: avoid trim error on fs with small groups > > > > Signed-off-by: Ojaswin Mujoo > > Reviewed-by: Ritesh Harjani > > --- > > > > Changes since v2 [1] > > > > * Eliminated redundant $ret variable > > > > [1] > > https://lore.kernel.org/all/20220516063951.87838-1-ojaswin@linux.ibm.com/ >