Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4930543ybp; Mon, 14 Oct 2019 12:23:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqx7eMAubg0sjcoyiYTPUcFVGFqeq8lCnIQfDF1dw5mRqIEQU8XQytEzmupXcBkWy75I13IZ X-Received: by 2002:a50:ed01:: with SMTP id j1mr29923175eds.111.1571081027332; Mon, 14 Oct 2019 12:23:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571081027; cv=none; d=google.com; s=arc-20160816; b=blQHnATxZwdzNOMXk1G2GjU5/LQ7ppJ7NfIoKeSdQQOfrv0G9rG+Bv+1gdlzP7VqIE MgMrVAw1RtMP8N7s4npIiMhUfKmO1ClzGv4RW2eiUzmYUF0Tw9QnDl5aOc61KneOsZRm C0Rn6WPTfJqmU7FpEm2V7+z1AN9P2zc4/88JvQfFzj+pHTNMURQ7+nzVGwSrqrBtASnz OjBjzY2eoBirykW6a00j5I4O6i2h3Wm0JQyuRim1jysv6Zsm7XsTpfOyoXmeRw5lMQZZ rjVGcdlzUpJhbtKr6sI6jdLJbBQp28yAWFXT0uLuBNs6oMGs26xk5LKF3Rc1iaW6Agyl kGBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Sj5E7ri9EjF2cgNcXdjfk05LQnS3NN8JCDICViSe1l4=; b=KKVyJxV099nNbLuOWJSHmOnZZOwU9os6dU4Fdmj/ciPd+ZKljuMl6DRtt8qBtRlwaG l9INli/y8IPUHjXggoVUryIXizeyvku4cK/CD2remzrNCsh7qdrPHQ+CMwF1WYTcaId6 FGIdhQexoSvKvCfJzSR8QS8w2nLUuRPskylMaTxm3rJgn20A6tG8TwKxkqh4qLfDEtTj DBw3HsVF7eOeEC1hbT/74b/fckkShz0FdfrPFujLgDcw1xAJvAeIYeVz4n6F2rAauXN3 Y7EQpAQHL91fxqXbobicU2PgKrdTgWAIRLiahCGiCh39/icU2evhwL1F3y/4xfUht3I8 W3IQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2019-08-05 header.b=NRfYrTFx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c54si13256701edb.230.2019.10.14.12.23.23; Mon, 14 Oct 2019 12:23:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2019-08-05 header.b=NRfYrTFx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388556AbfJNRe5 (ORCPT + 99 others); Mon, 14 Oct 2019 13:34:57 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:33214 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730180AbfJNRe5 (ORCPT ); Mon, 14 Oct 2019 13:34:57 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x9EHTp3K055924; Mon, 14 Oct 2019 17:34:29 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2019-08-05; bh=Sj5E7ri9EjF2cgNcXdjfk05LQnS3NN8JCDICViSe1l4=; b=NRfYrTFxZzoOLxMcx65XLBB3ERJNQMv6n5M78L/0xlTcg1yrbwGrNSDcLoOjtucMpMiw nCdS2UdRbm/zV3OryxWtaiUcBT2dhyN9Y3ciyKA+D7eqfulGWi8hxdzv2jYY+x7V2fRh 7Y7PnwKF+QiHacsd2rSppbdChEsZYK01alggAyr6KWNbEFwpI6SqS1Fw44fIYvxuAzF/ QPSlZ9xDXQHJe/9Nec9YXT8VquHrSH0Q5X7a1Dyo118w1dad2a6ZkrO3Vf6iNpLxEUvF Wy0jby1mjEKRIw9YtOHOrgKMyLBbBeD4dzwQionO6Q0mKiHajLAiYzsQ0laTRndJLz/T Dg== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2120.oracle.com with ESMTP id 2vk7fr2awy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 14 Oct 2019 17:34:29 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x9EHSTkp104914; Mon, 14 Oct 2019 17:34:28 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserp3030.oracle.com with ESMTP id 2vks076tgk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 14 Oct 2019 17:34:27 +0000 Received: from abhmp0022.oracle.com (abhmp0022.oracle.com [141.146.116.28]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x9EHYQIv015116; Mon, 14 Oct 2019 17:34:26 GMT Received: from localhost (/10.159.144.186) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 14 Oct 2019 10:34:26 -0700 Date: Mon, 14 Oct 2019 10:34:24 -0700 From: "Darrick J. Wong" To: yu kuai Cc: sandeen@redhat.com, billodo@redhat.com, linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org, yi.zhang@huawei.com, zhengbin13@huawei.com Subject: Re: [PATCH] xfs: include QUOTA, FATAL ASSERT build options in XFS_BUILD_OPTIONS Message-ID: <20191014173424.GX13108@magnolia> References: <1567751206-128735-1-git-send-email-yukuai3@huawei.com> <20190916162406.GY2229799@magnolia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190916162406.GY2229799@magnolia> User-Agent: Mutt/1.9.4 (2018-02-28) X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9410 signatures=668684 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-1910140146 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9410 signatures=668684 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-1910140146 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 16, 2019 at 09:24:06AM -0700, Darrick J. Wong wrote: > On Fri, Sep 06, 2019 at 02:26:46PM +0800, yu kuai wrote: > > In commit d03a2f1b9fa8 ("xfs: include WARN, REPAIR build options in > > XFS_BUILD_OPTIONS"), Eric pointed out that the XFS_BUILD_OPTIONS string, > > shown at module init time and in modinfo output, does not currently > > include all available build options. So, he added in CONFIG_XFS_WARN and > > CONFIG_XFS_REPAIR. However, this is not enough, add in CONFIG_XFS_QUOTA > > and CONFIG_XFS_ASSERT_FATAL. > > > > Signed-off-by: yu kuai > > --- > > fs/xfs/xfs_super.h | 10 ++++++++++ > > 1 file changed, 10 insertions(+) > > > > diff --git a/fs/xfs/xfs_super.h b/fs/xfs/xfs_super.h > > index 763e43d..b552cf6 100644 > > --- a/fs/xfs/xfs_super.h > > +++ b/fs/xfs/xfs_super.h > > @@ -11,9 +11,11 @@ > > #ifdef CONFIG_XFS_QUOTA > > extern int xfs_qm_init(void); > > extern void xfs_qm_exit(void); > > +# define XFS_QUOTA_STRING "quota, " > > #else > > # define xfs_qm_init() (0) > > # define xfs_qm_exit() do { } while (0) > > +# define XFS_QUOTA_STRING > > #endif > > > > #ifdef CONFIG_XFS_POSIX_ACL > > @@ -50,6 +52,12 @@ extern void xfs_qm_exit(void); > > # define XFS_WARN_STRING > > #endif > > > > +#ifdef CONFIG_XFS_ASSERT_FATAL > > +# define XFS_ASSERT_FATAL_STRING "fatal assert, " > > /me wonders if the space here will screw up any scripts that try to > parse the logging string, but OTOH that seems pretty questionable to me. Answer: There are already string components with spaces. Reviewed-by: Darrick J. Wong --D > Also, whatever happened to adding a sysfs file so that scripts (ok let's > be honest, xfstests) could programmatically figure out the capabilities > of the running xfs module? > > --D > > > +#else > > +# define XFS_ASSERT_FATAL_STRING > > +#endif > > + > > #ifdef DEBUG > > # define XFS_DBG_STRING "debug" > > #else > > @@ -63,6 +71,8 @@ extern void xfs_qm_exit(void); > > XFS_SCRUB_STRING \ > > XFS_REPAIR_STRING \ > > XFS_WARN_STRING \ > > + XFS_QUOTA_STRING \ > > + XFS_ASSERT_FATAL_STRING \ > > XFS_DBG_STRING /* DBG must be last */ > > > > struct xfs_inode; > > -- > > 2.7.4 > >