From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 24367C7EE24 for ; Fri, 2 Jun 2023 04:13:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233404AbjFBENy (ORCPT ); Fri, 2 Jun 2023 00:13:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233419AbjFBENr (ORCPT ); Fri, 2 Jun 2023 00:13:47 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 232DA1A8; Thu, 1 Jun 2023 21:13:45 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 0602968AA6; Fri, 2 Jun 2023 06:13:42 +0200 (CEST) Date: Fri, 2 Jun 2023 06:13:41 +0200 From: Christoph Hellwig To: "Darrick J. Wong" Cc: Christoph Hellwig , fstests@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 1/2] generic: add a test for device removal with dirty data Message-ID: <20230602041341.GA19603@lst.de> References: <20230601094224.1350253-1-hch@lst.de> <20230601094224.1350253-2-hch@lst.de> <20230601152536.GA16856@frogsfrogsfrogs> <20230601152740.GA31938@lst.de> <20230601160450.GB16856@frogsfrogsfrogs> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230601160450.GB16856@frogsfrogsfrogs> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Thu, Jun 01, 2023 at 09:04:50AM -0700, Darrick J. Wong wrote: > Good question. AFAICT the only checks on it are in > _require_scratch_nocheck itself... > > > But yeah, these tests should simply grow a > > > > _require_block_device $SCRATCH_DEV > > ...but you could set up the scsi_debug device and mount it on > $TEST_DIR/foo which would avoid the issue of checking SCRATCH_* > entirely. I thought about that as we really don't need a SCRATCH_DEV, but how do we ensure we are testing a block based file system then?