Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1414229pxb; Thu, 4 Nov 2021 01:44:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwII48IAgUtzUbc28SUdtZTdRfKyNhv87SckCRPClN9MJXuXxwSu1Zy3Pc5jB1aIQRM6Aln X-Received: by 2002:a92:cb01:: with SMTP id s1mr32772617ilo.41.1636015440447; Thu, 04 Nov 2021 01:44:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636015440; cv=none; d=google.com; s=arc-20160816; b=ZPEHO9gF3MQsIsi9EltEOm8GHB3V3HBAas1YDdqIr3yYtbP93MOeDg5PssGc+mHCdu AlYSZmA2Ow/ipji6J++rB4g7VnEVbgdzGlf01mUpTpecAFTxXkY5jIayrPEUppbrTtWz nDf8xrb6TaanZCiOxKiS2FzQ0qWGUNpDIJW7InbIkEyCsv9gnnvAk457oGX/yLDXQDyE 7HlfQo3x/fCD1RqY5MBTpVpT3YgwjOfEhK/WNa9I2c786/AcwFmdRtC36ai/lgjbeXq8 +plGCdFacin1PCHksKa48iIRmhqkRR4MW1S/rRlnGj1B/xZNmIimdtV5RFlx6k/3dPLl J88w== 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=VVsFFEpnmiUO7LTjJRoivd4npSADh5xncUE4LYckSXM=; b=T6x2ua/sZ9VoQl58WWutFyE77LjTGIvIBwuoJBB/qzWncMCch/ujJLMEQQIQcspD47 YLf2bFPGehecH3pWijSrPGE3XEpAk8x6QXX2O6/ImTXPVZzrYGuecaGHdDe2O6KuviJS sJJmIy5Ia8eiXJ6xLO6VywNVkRdml4glQF41OCz/pqj2KK0SEObwX65+y9m9H6MMajeA Ed+9Go0tqAnVoAdbV/777Vx4btURFW4o0pAUk8U62DCNHSv/yfhkDtUhSi27TIWbhgJN jMnoduY1oUYSTN4fPv/393BjDIhLViJnG7gUA5kINKcdThyJ089Q7ZWreQ9lFqUDK+YV hrBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Wiwt6cCz; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d15si7847952ilv.102.2021.11.04.01.43.44; Thu, 04 Nov 2021 01:44:00 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Wiwt6cCz; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230152AbhKDIqE (ORCPT + 99 others); Thu, 4 Nov 2021 04:46:04 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:23844 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230252AbhKDIqE (ORCPT ); Thu, 4 Nov 2021 04:46:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1636015406; 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: in-reply-to:in-reply-to:references:references; bh=VVsFFEpnmiUO7LTjJRoivd4npSADh5xncUE4LYckSXM=; b=Wiwt6cCzlnKZFfzx5yFHJEb16fvtwd1Ibm+HTBkZ0a4/An+mDAkB4kdV+V8IPE7M5svTlf YIuIAxhyxtJGamK3ytK2m9kO+5+BZSh8taYT3yqnOKBRmdWZYhLeYq+C0S+J+4B7rN4h4k UvevJXL15q+ZW7pd9I6TG0iAQxgkdOA= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-185-Lz4xWKAUMwGZ1x4EYPEQbA-1; Thu, 04 Nov 2021 04:43:23 -0400 X-MC-Unique: Lz4xWKAUMwGZ1x4EYPEQbA-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id CBBDF8066F0; Thu, 4 Nov 2021 08:43:20 +0000 (UTC) Received: from work (unknown [10.40.194.61]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9257C18351; Thu, 4 Nov 2021 08:43:19 +0000 (UTC) Date: Thu, 4 Nov 2021 09:43:15 +0100 From: Lukas Czerner To: Theodore Ts'o 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: <20211104084315.qvmuy5bf4tzd56op@work> 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: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Wed, Nov 03, 2021 at 11:33:18PM -0400, Theodore Ts'o wrote: > > +_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. Good point. Of course it would only work if kernel is configured to have /proc/config.gz, but I don't know of any other reliable way to checking the kernel config. Thanks! -Lukas > > Thanks, > > - Ted >