Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1809108imm; Mon, 3 Sep 2018 10:00:45 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ8NEzKDsQM2ZpS4rDmmqkTJaXw9Et4Di1NaRH8bGVBCTPVblWsvSOwTXDhPax3GMW/5A+C X-Received: by 2002:a65:4289:: with SMTP id j9-v6mr1439085pgp.284.1535994045128; Mon, 03 Sep 2018 10:00:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535994045; cv=none; d=google.com; s=arc-20160816; b=HhJ+As73owf1njaqr6A+pl5jODqz8bbbUhihfoZPbnODVAx+ssuH3laIwIq6lMXvec 0MwYZrfx598lo8sTAHuo4Ka9G09GXSQSwSw/I3OsWq78dMO/Q50TbfdytUPJ2qy7pnoi h/lCb/zE3+NqFjdLJgjBmuk7Enz935MBxrJibOabAXySJKdY/0Z7xBxPREUPTYs7bRsq ehvloJyZIwTSEQdqMJheO7h/Euco1/3tGOaPRVwKvK6i2S5IuGhNJPKNih3mGf035SLJ InqvCDWU+Oh+jmF7s3od3GpusfrUwTits8N1RLSt+5kpAyT17nbBAEHuJ33gAmWloGpI Gobg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=0Vf3wRleCWOqQh08wY8sm5gnwkKlemsmk3gV3y05bbQ=; b=YLPZntEWlA1v+I296woBcUML1xT9fR2eh7jSyXkXkE/51lRpzrO9UyYfapdEEwGWxO bOy+2cGgml3yEu3B15T5w3ZB8/YSwKuvWHYhERMUoonxatgP3O2pJbXLNtY0FqUIFjtA xm68ANI+8byW9xZhw3sjCP64DTkJNw/iNPCRebPq77z70BEkSRU+TV7shaISMqQA3JpH dOvsc187MbQMTyz5cVNcUTbMk4MWkr/rZGnG3jnbxMdahdJj44E5fYMooY1Ae1PYPBHt LgGThgl4HKsjI5HiL9migMtDn2trlwb6Y2gzSysdmeAttJoEILFHzkaUUalOCH999jAC y1hA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i189-v6si18505825pgd.668.2018.09.03.10.00.30; Mon, 03 Sep 2018 10:00:45 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728619AbeICVUD (ORCPT + 99 others); Mon, 3 Sep 2018 17:20:03 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:38482 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728091AbeICVUC (ORCPT ); Mon, 3 Sep 2018 17:20:02 -0400 Received: from localhost (ip-213-127-74-90.ip.prioritytelecom.net [213.127.74.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 0C48BCF5; Mon, 3 Sep 2018 16:59:03 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Steve French , Ronnie Sahlberg , Pavel Shilovsky , Paulo Alcantara Subject: [PATCH 4.4 41/80] cifs: add missing debug entries for kconfig options Date: Mon, 3 Sep 2018 18:49:19 +0200 Message-Id: <20180903164935.794312057@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180903164934.171677301@linuxfoundation.org> References: <20180903164934.171677301@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Steve French commit 950132afd59385caf6e2b84e5235d069fa10681d upstream. /proc/fs/cifs/DebugData displays the features (Kconfig options) used to build cifs.ko but it was missing some, and needed comma separator. These can be useful in debugging certain problems so we know which optional features were enabled in the user's build. Also clarify them, by making them more closely match the corresponding CONFIG_CIFS_* parm. Old format: Features: dfs fscache posix spnego xattr acl New format: Features: DFS,FSCACHE,SMB_DIRECT,STATS,DEBUG2,ALLOW_INSECURE_LEGACY,CIFS_POSIX,UPCALL(SPNEGO),XATTR,ACL Signed-off-by: Steve French Reviewed-by: Ronnie Sahlberg Reviewed-by: Pavel Shilovsky Reviewed-by: Paulo Alcantara CC: Stable Signed-off-by: Greg Kroah-Hartman --- fs/cifs/cifs_debug.c | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) --- a/fs/cifs/cifs_debug.c +++ b/fs/cifs/cifs_debug.c @@ -123,25 +123,41 @@ static int cifs_debug_data_proc_show(str seq_printf(m, "CIFS Version %s\n", CIFS_VERSION); seq_printf(m, "Features:"); #ifdef CONFIG_CIFS_DFS_UPCALL - seq_printf(m, " dfs"); + seq_printf(m, " DFS"); #endif #ifdef CONFIG_CIFS_FSCACHE - seq_printf(m, " fscache"); + seq_printf(m, ",FSCACHE"); +#endif +#ifdef CONFIG_CIFS_SMB_DIRECT + seq_printf(m, ",SMB_DIRECT"); +#endif +#ifdef CONFIG_CIFS_STATS2 + seq_printf(m, ",STATS2"); +#elif defined(CONFIG_CIFS_STATS) + seq_printf(m, ",STATS"); +#endif +#ifdef CONFIG_CIFS_DEBUG2 + seq_printf(m, ",DEBUG2"); +#elif defined(CONFIG_CIFS_DEBUG) + seq_printf(m, ",DEBUG"); +#endif +#ifdef CONFIG_CIFS_ALLOW_INSECURE_LEGACY + seq_printf(m, ",ALLOW_INSECURE_LEGACY"); #endif #ifdef CONFIG_CIFS_WEAK_PW_HASH - seq_printf(m, " lanman"); + seq_printf(m, ",WEAK_PW_HASH"); #endif #ifdef CONFIG_CIFS_POSIX - seq_printf(m, " posix"); + seq_printf(m, ",CIFS_POSIX"); #endif #ifdef CONFIG_CIFS_UPCALL - seq_printf(m, " spnego"); + seq_printf(m, ",UPCALL(SPNEGO)"); #endif #ifdef CONFIG_CIFS_XATTR - seq_printf(m, " xattr"); + seq_printf(m, ",XATTR"); #endif #ifdef CONFIG_CIFS_ACL - seq_printf(m, " acl"); + seq_printf(m, ",ACL"); #endif seq_putc(m, '\n'); seq_printf(m, "Active VFS Requests: %d\n", GlobalTotalActiveXid);