Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1198422pxb; Wed, 3 Nov 2021 20:34:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkJjNeqS9PIKScaag+M/ZG1Q9vmBZIORV6OgusdZiJalqFxiba1ZVTjMtsB4QhXB9MrzRp X-Received: by 2002:a02:741b:: with SMTP id o27mr1907889jac.84.1635996852612; Wed, 03 Nov 2021 20:34:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635996852; cv=none; d=google.com; s=arc-20160816; b=hUjF2bHgcSUyVSs8THjSTIa/8EF2/v1lsfcQ8NR8WrEyW27IcFu6OJ2tyfVvHNf9JQ nJmaqJcp88OhkSB9v4J78O/LAtQnaoc4mwAKMca6kIwbv+Wox8/uo0s0xkQu/GCs0Wer I2xHMepYMTSSw5UVG3egGowqZUfIPzmk6+6L3S4BgwoXMoAxwOJFAEGCLZ8yTLh5R8ke KRgib0kgHiPq3gaJw/S3sJO+pUGCsn11J3c9HQRyQU8WID7LVQIpHbYQAgtHKLhzHqiR tnOQ8bauEzVnq4ve3WVBB8vKTmsZSIHgjJAYC3pZ65f8zjh9N3h4KNZ/2QLhQQMoe8TZ 63MA== 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; bh=Wj1oaEt+RIM06qcjwsdj+GZ5C+8x01b6PilmS3YXKmY=; b=RiZ1RMi7EhqLp+Fp0UgI9IplXjIeGPm3f6IFjyqKiDJCYI3hSwrOk29ZaPaewfMVip /u2GGjgyAAr6BenrbAA2TKE7WVviI9wbLLLkO5tIhABwvA6jzqNNsD/N/nKeDJ/pr1Ni vXoLslaHRI9kJsbSuumt7cM0JQud+gCaSaTA5yd17l2Lk5c4RKeERgFerQWoDG3anGVK lQoXhLSNyF1PDsSAOKcXrIHjahL6ovVsviiKezGIjFxwnZfyvPteQvQIjTE34CgC2c7x lYBTOMmhjkEmviCizv/bdKJvi3SmvZOhzP3drblREkxaNmP/KJHoTM4MlpVx/iOhzVhj BM7w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t8si5052407ilo.29.2021.11.03.20.33.48; Wed, 03 Nov 2021 20:34:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230084AbhKDDgH (ORCPT + 99 others); Wed, 3 Nov 2021 23:36:07 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:47258 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229893AbhKDDgH (ORCPT ); Wed, 3 Nov 2021 23:36:07 -0400 Received: from cwcc.thunk.org (pool-72-74-133-215.bstnma.fios.verizon.net [72.74.133.215]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 1A43XJoT005642 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 3 Nov 2021 23:33:19 -0400 Received: by cwcc.thunk.org (Postfix, from userid 15806) id C744C15C00B9; Wed, 3 Nov 2021 23:33:18 -0400 (EDT) Date: Wed, 3 Nov 2021 23:33:18 -0400 From: "Theodore Ts'o" To: Lukas Czerner Cc: fstests@vger.kernel.org, linux-ext4@vger.kernel.org, guan@eryu.me Subject: Re: [PATCH v4] ext4: add test for all ext4/ext3/ext2 mount options Message-ID: References: <20211026093112.26221-1-lczerner@redhat.com> <20211102105911.5790-1-lczerner@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211102105911.5790-1-lczerner@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org > +_has_kernel_config() > +{ > + option=$1 > + config="/lib/modules/$(uname -r)/build/.config" > + grep -qE "^${option}=[my]" $config > +} In my test infrastructure, /lib/modules/$Kver/build/.config doesn't exist. That's because I build the kernel without any modules, and then launch kvm using its --kernel command-line option. This really helps with development velocity, since the developer doesn't need to waste time installing the kernel, and/or building a kernel rpm or dpkg. Instead, kvm can just launch the kernel directly out of the build tree: /usr/bin/kvm ... --kernel /build/ext4/arch/x86/boot/bzImage .. So it would be nice if _has_kernel_config also checks to see if /proc/config.gz exists, and if so, tries to use it. Thanks, - Ted