Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp19356321rwd; Wed, 28 Jun 2023 08:16:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7lEqmf/1juQmx9aCc5uNxOcev8EsmgqM8KlSrAbdEwMUqO6lTd6hSvTHcbrHdBlwnkbwQy X-Received: by 2002:a17:902:c407:b0:1b3:d11c:23ca with SMTP id k7-20020a170902c40700b001b3d11c23camr10482845plk.8.1687965406202; Wed, 28 Jun 2023 08:16:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687965406; cv=none; d=google.com; s=arc-20160816; b=h4MPWqPWl5ddAIXMUtimd8nbonOu9LRQNtIyFToRpfIbrxNG0Qs8ePQT6RvoL/re6S M7ESX63pCXv6Asp7zBTIcDTgnPRevFKDHJPxloDsntwvguohT7Cz05+3jap9fop+yzYf fv34rf/8+s3jvtpgJ9REJaQWUtIfj3lotQdY6FSRadvP1fDqJqFEM4vV5efiaUQ0A3Ee cEIQ5QvSZezfeVWC9GttLPFaS+JNQTqPLR3Yc5yUt7m9LMFKQ3LYaH2QS5A9HfpdlJvh 8TdI+LtgtOQyNwOXBORQw7l1ue6QDwJlWsoqrJo+hfDbJQ/dT9GGWvP9VO4xqLHDoDQP CvAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=gw+1SzCqOzLBAsCHPofcZWnW/1XnEKR52ONcAb/VwIU=; fh=2fji9H7tSQfJHsMPbu11c+jI9dZQRIG/0FvaYjuKzYs=; b=zlgKAcyf/Xqm/LRNETy8U3wTZ0CF0VWLhDHOc4BcjQShMYXvnaQXe/RE90hTzelADn Ug218gsxzQFx77r+dR9H9j3yMRueFdf8oKVOfantNRp0l+DDsWWldNAxQrX9sy+9piOv RxJFVaxfiAy9E2i1zBwb6NmLMlCXx2FVup6XE2Z8NcP3Kxv/9geSywv0oVOb4JylbQUi f+wn/zZKE2+5oNScNRgwscVFdcuBPDCrtA/GrUQt7kIDh+jrm8Kp9pQcQIzJ/LaZpgrJ crOBY+brcA8oYYFSje1KgPh6QWGZc6WDT842wVHqxtpz4u3M4WnppZKzA70Acs4XX1M3 HGPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20221208.gappssmtp.com header.s=20221208 header.b=nMvogRKj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a4-20020a170902ecc400b001b559aa99bfsi9850783plh.455.2023.06.28.08.16.31; Wed, 28 Jun 2023 08:16:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-dk.20221208.gappssmtp.com header.s=20221208 header.b=nMvogRKj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231608AbjF1Okj (ORCPT + 99 others); Wed, 28 Jun 2023 10:40:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231583AbjF1Okd (ORCPT ); Wed, 28 Jun 2023 10:40:33 -0400 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 632612103 for ; Wed, 28 Jun 2023 07:40:31 -0700 (PDT) Received: by mail-io1-xd30.google.com with SMTP id ca18e2360f4ac-785d3a53ed6so12866339f.1 for ; Wed, 28 Jun 2023 07:40:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20221208.gappssmtp.com; s=20221208; t=1687963230; x=1690555230; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=gw+1SzCqOzLBAsCHPofcZWnW/1XnEKR52ONcAb/VwIU=; b=nMvogRKjodPYqMEKzS1+45qiQ1ts6quMm+6EBnJOqhU0hfN8kaUd8jx/fMWbr+GZ52 nbR2svkXJ8qCfmRdRfaWCGF+x6DZmh7IFMkcC/xwNTZMov8F0qz0dFJ28i8B076zXjm7 JkCBYXsfYhytvZ51G1ch0A84X1/Dw56tQB50WUdQqlZOp42caRwZje9sNVjdDJczbCTb iKHLJzdfg+mrshlTq3DoTtEF1fSOwFGZ/gcD5XWxCUWZpxRKXgMlKfdBW4AUzg79TYqo rs2Wl0BsyQDOQmwp6PkcE+/6ldYlAG6NIG0bA523SM+Hfoo8CIZWfz5iMFOxArBiJPvk 7NTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687963230; x=1690555230; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=gw+1SzCqOzLBAsCHPofcZWnW/1XnEKR52ONcAb/VwIU=; b=V9dPCkuDOkz8z2xwO7ALtS8jUW0dcxDgm6gm+0krUSpLPqZhnR1/96DvNYHPVpePkt B/VjdcT9XAdBUzqcKJWfu/JmApZGWtPi2TSEx9Z8CcZbx2T56qHn7jGQIPnw9M+j8BcD GWdMCqD1hy9nezGTbd8b3n+YCfK0107Z/u0iWwHXtOpLIvscdHxExX+F/TIRxBPyk7g7 A7yQWSQbtDoRMLKS3TBU6fXL41cW/9wLxvO0Sou/1ohKIq11m4sGl1Z8zTKgCMT1qCsr pvdzzisfRd3lBpWst1RafL9j7mh67rINd7xal1uhyVmqOsGOfGz9yBkNPwEudybDhaG/ H31g== X-Gm-Message-State: AC+VfDwZCrCMibRir6kemUGszsBSSP5KADeeqjtENS6NA9KFCJQ+uNbN ynzGpoEbO3OoxdlZzclzaGR4Mg== X-Received: by 2002:a6b:1495:0:b0:780:d65c:d78f with SMTP id 143-20020a6b1495000000b00780d65cd78fmr16017374iou.2.1687963230425; Wed, 28 Jun 2023 07:40:30 -0700 (PDT) Received: from [192.168.1.94] ([96.43.243.2]) by smtp.gmail.com with ESMTPSA id ed21-20020a056638291500b0042af158d05fsm436706jab.114.2023.06.28.07.40.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 28 Jun 2023 07:40:29 -0700 (PDT) Message-ID: <3337524d-347c-900a-a1c7-5774cd731af0@kernel.dk> Date: Wed, 28 Jun 2023 08:40:27 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [GIT PULL] bcachefs Content-Language: en-US To: Dave Chinner , Kent Overstreet Cc: torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-bcachefs@vger.kernel.org, Christoph Hellwig References: <20230626214656.hcp4puionmtoloat@moria.home.lan> <20230627000635.43azxbkd2uf3tu6b@moria.home.lan> <91e9064b-84e3-1712-0395-b017c7c4a964@kernel.dk> <20230627020525.2vqnt2pxhtgiddyv@moria.home.lan> <23922545-917a-06bd-ec92-ff6aa66118e2@kernel.dk> <20230627201524.ool73bps2lre2tsz@moria.home.lan> From: Jens Axboe In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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-kernel@vger.kernel.org On 6/27/23 4:05?PM, Dave Chinner wrote: > On Tue, Jun 27, 2023 at 04:15:24PM -0400, Kent Overstreet wrote: >> On Tue, Jun 27, 2023 at 11:16:01AM -0600, Jens Axboe wrote: >>> On 6/26/23 8:59?PM, Jens Axboe wrote: >>>> On 6/26/23 8:05?PM, Kent Overstreet wrote: >>>>> On Mon, Jun 26, 2023 at 07:13:54PM -0600, Jens Axboe wrote: >>>>>> Doesn't reproduce for me with XFS. The above ktest doesn't work for me >>>>>> either: >>>>> >>>>> It just popped for me on xfs, but it took half an hour or so of looping >>>>> vs. 30 seconds on bcachefs. >>>> >>>> OK, I'll try and leave it running overnight and see if I can get it to >>>> trigger. >>> >>> I did manage to reproduce it, and also managed to get bcachefs to run >>> the test. But I had to add: >>> >>> diff --git a/check b/check >>> index 5f9f1a6bec88..6d74bd4933bd 100755 >>> --- a/check >>> +++ b/check >>> @@ -283,7 +283,7 @@ while [ $# -gt 0 ]; do >>> case "$1" in >>> -\? | -h | --help) usage ;; >>> >>> - -nfs|-afs|-glusterfs|-cifs|-9p|-fuse|-virtiofs|-pvfs2|-tmpfs|-ubifs) >>> + -nfs|-afs|-glusterfs|-cifs|-9p|-fuse|-virtiofs|-pvfs2|-tmpfs|-ubifs|-bcachefs) >>> FSTYP="${1:1}" >>> ;; >>> -overlay) >> >> I wonder if this is due to an upstream fstests change I haven't seen >> yet, I'll have a look. > > Run mkfs.bcachefs on the testdir first. fstests tries to probe the > filesystem type to test if $FSTYP is not set. If it doesn't find a > filesystem or it is unsupported, it will use the default (i.e. XFS). I did format both test and scratch first with bcachefs, so guessing something is going wrong with figuring out what filesystem is on the device and then it defaults to XFS. I didn't spend too much time on that bit, figured it was easier to just force bcachefs for my purpose. > There should be no reason to need to specify the filesystem type for > filesystems that blkid recognises. from common/config: > > # Autodetect fs type based on what's on $TEST_DEV unless it's been set > # externally > if [ -z "$FSTYP" ] && [ ! -z "$TEST_DEV" ]; then > FSTYP=`blkid -c /dev/null -s TYPE -o value $TEST_DEV` > fi > FSTYP=${FSTYP:=xfs} > export FSTYP Gotcha, yep it's because blkid fails to figure it out. -- Jens Axboe