Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp730011imi; Fri, 22 Jul 2022 08:12:37 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v37N+2Cz4+/tWlnAUDoAQRVloOZZgo9JNRhFzXUVd73vtccKSAyvZjGyfXap3n2gCFiv5f X-Received: by 2002:a9d:61d7:0:b0:61c:7bed:ce14 with SMTP id h23-20020a9d61d7000000b0061c7bedce14mr152251otk.366.1658502757710; Fri, 22 Jul 2022 08:12:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658502757; cv=none; d=google.com; s=arc-20160816; b=O4LLw9z2q2SawsKkjvWpWDUgksYA1r2LRuY6qZEVWUl0EIzEFq8oyrwDDwgtwum6ba e9Iw+mWrQ3XgSCC6wfFnJ2zhxybiHbauMPK2esPjIx9T5vA53sWG9xnxaKM0Q5OxsVYl SAhu3+wVyDMRQebuAtSVb2QqLc8Nk0qY+3t4u0gMTyRnbdepM9ymVkRAvrkxOwR9xf2X 8SlX3W9fIOEQpXSdEICjIj8ELx39VmoeT2N266jrjIolOfK8SU741fQhlKxoR6YI3ZZV GCEl2krtyYmjA4EoQxT3FJTM97C5GbZ/8AW/a6szZdzdqdgpPSw23AfdzAKMlWJGsCfC c4dw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Xi8dTMRGNSd0HqoORa/8kAp5M9DPhO5fCb8gODNwrS8=; b=hmBuS05aX3Y1SG9XqiIOWoTRKPhGrVQiHrx1fdA7jWmkzPI3v7h7/uWBSMydjnABs9 oDSw9kiu7Fx8mPWqQHDfeo68eoHt9JO5EaVke0/IRg/xqvtR92D52jp1x4hiIJ5Ls25w 2Gd0NxoQ2jgLzlAWMvKyNOCNtNaKdEgWJUU0aIdHKA5sXpzYS7WO3D++8ZHs/10IcZWd AnIg8KEnowG6Wj/YhXRRBe1untUMLDGdsVC32RCM30gV8miGQ7OpU2LseyFjX3xuBcFR igHt9eeNbnb28qE0pDDFssLUAQapdpzCWNKh/QLdU3hT6yQVtgDgFtjHJ3yXR+zVGlKU Gdnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MnFVpx0V; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 24-20020aca0d18000000b0033a397f4837si4036824oin.302.2022.07.22.08.12.08; Fri, 22 Jul 2022 08:12:37 -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=@redhat.com header.s=mimecast20190719 header.b=MnFVpx0V; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231700AbiGVPL0 (ORCPT + 99 others); Fri, 22 Jul 2022 11:11:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235573AbiGVPLY (ORCPT ); Fri, 22 Jul 2022 11:11:24 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 95306951DD for ; Fri, 22 Jul 2022 08:11:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1658502682; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Xi8dTMRGNSd0HqoORa/8kAp5M9DPhO5fCb8gODNwrS8=; b=MnFVpx0VJ6kxOx/a+a/i1bUR7wl48ZN6Ipbuf7B6tNAke8QRJmOiXCnHfuBLJO9MPCCm2Y 7rZXbcR/by06jKJkwBQuI4xPKrkv8M4GVn3oniRGZ9VSUzJDx92RQ3FrsZBwc94ZVafwTZ A5PqWWIbaPwHQ3yKmgg6VW7edTRiHXk= Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-470-si0x10VPMpqew8MZpJwMgg-1; Fri, 22 Jul 2022 11:11:21 -0400 X-MC-Unique: si0x10VPMpqew8MZpJwMgg-1 Received: by mail-qk1-f198.google.com with SMTP id k190-20020a37bac7000000b006af6d953751so3929527qkf.13 for ; Fri, 22 Jul 2022 08:11:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=Xi8dTMRGNSd0HqoORa/8kAp5M9DPhO5fCb8gODNwrS8=; b=IUntI1sD5PSSY3JHibPDJ4lcgN0sxFyDWWoblgYbn0EkYB7Ni27zzyT5BNGQc7gKjV QoEI5E/f7geQIgD4CXrGgA6qpv8xldFkEZPfGO5J1jieq4acchyD7XlA6ZpQwlNpC/o8 wyb/FJNxEmy4bpsuv3EakpUY/ORzarzekaH7r6q32M8u9TVByNPkoIwljpKWNqSndx5r esMNLjwq2U5+H9RTcdDm+Hg8Em0wa2ktEViOTfWQmDdsMsSJm1RQ629hTf+Wb8BieQxF QdgrULGrLCCCDCNEpP3sN4LduDfRiawT69zwtPrEVNwkueNAD39JAKLX6kihuLV4uKfV 42Rw== X-Gm-Message-State: AJIora9JThsjGT5k2E/Twu94LRLLeXH7otVRQfnJ4mXPOQlocrBQ1sQz w4q1yMP/NLZfF4ugO0FcYcLzais5nguYS3dccEUwEjG9Lqt8m9N9HOwbjNa+aNdgkv96ycc4fiJ hMTRcJk3Hh1BQKI1d5GcMiA== X-Received: by 2002:a37:b03:0:b0:6b5:e533:e984 with SMTP id 3-20020a370b03000000b006b5e533e984mr281230qkl.364.1658502680842; Fri, 22 Jul 2022 08:11:20 -0700 (PDT) X-Received: by 2002:a37:b03:0:b0:6b5:e533:e984 with SMTP id 3-20020a370b03000000b006b5e533e984mr281210qkl.364.1658502680564; Fri, 22 Jul 2022 08:11:20 -0700 (PDT) Received: from zlang-mailbox ([209.132.188.80]) by smtp.gmail.com with ESMTPSA id d17-20020ac81191000000b0031ee3449f34sm2933907qtj.86.2022.07.22.08.11.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Jul 2022 08:11:20 -0700 (PDT) Date: Fri, 22 Jul 2022 23:11:14 +0800 From: Zorro Lang To: Sun Ke Cc: Theodore Ts'o , fstests@vger.kernel.org, linux-ext4@vger.kernel.org Subject: Re: [PATCH v3 1/2] ext4: resize fs after resize_inode without e2fsck Message-ID: <20220722151114.c4w7s6v6fu5hphf5@zlang-mailbox> References: <20220713092859.3881376-1-sunke32@huawei.com> <20220713092859.3881376-2-sunke32@huawei.com> <20220714154607.qq6cqgvncxhsn66w@zlang-mailbox> <20220715180815.gegmapvruor6vin3@zlang-mailbox> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE 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 Fri, Jul 22, 2022 at 07:51:57AM -0400, Theodore Ts'o wrote: > On Fri, Jul 22, 2022 at 04:16:26PM +0800, Sun Ke wrote: > > > > 1. The test run fsck automatically, and complain inconsistent,I think it > > need not run fsck. > > The check script always run fscks after the test. In order to > suppress the fsck complaint, we'll need to add this after the > resize2fs invocation: > > _scratch_unmount > $DEBUGFS_PROG -w -R "set_super_value s_reserved_gdt_blocks 0" $SCRATCH_DEV \ > >>$seqres.full 2>&1 > > This resets the s_reserved_gdt_blocks field back to zero, so the fsck > doesn't fail. Which is fine, because the point of the test is to see > whether the kernel dereferences a NULL pointer or not. Or maybe just replace _reuqire_scratch with _require_scratch_nocheck, if we corrupt the fs on SCRATCH_DEV intentionally? Thanks, Zorro > > > 2. It warn missing kernel fix, but the commit had merged. > > The way _fixed_by_kernel_commit works is if the test fails (for any > reason), it prints that you MAY be missing the bugfix commit: > > > HINT: You _MAY_ be missing kernel fix: > > b55c3cd102a6 ext4: add reserved GDT blocks check > > - Ted >