Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1832750imm; Mon, 3 Sep 2018 10:35:32 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ1lB3Z0jjovbHcefW1HRDY/1fu7teg7u2SbxelU6hhvT2ny+NyaX+AQga07sfo7MApYlHv X-Received: by 2002:a63:991a:: with SMTP id d26-v6mr7935259pge.159.1535996132388; Mon, 03 Sep 2018 10:35:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535996132; cv=none; d=google.com; s=arc-20160816; b=BfbeyZmJmV5fCJt0atOdETnv9aTQ4QXQbB+m1X/ndos33vfSTXkJZrifqhkotO58Fw 2cLpDtCChx7v7/Rti5Z9AR2X0PB3Zl+UhMxOhReY08fXijfKyBNnhvHm9PoulTGTxKRV xUycAGzA2jtCKXlsKi0QUHOTRYcUwt5Wou+eEzfagjK5uTget4PXSw6CrfJsLBUGFWkh Bp9shUksEq1utOcSse7CTYBgbZ3UlrGxVlVeP7dsPW/N4kzLXHWeHdDkgm2vqF2LTkuY YRR+Iycj/caekxMDyTe+FXcTzuBVHjU5arzlIRuRymzemnwZ2sZcG5/ci7qoQwg/27I4 gitg== 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=vLdwqN0PqZ6NphOEjuk6eD9JTyYszF+KZzxBIEWC8O8=; b=Ebq6wJAl/RokMWduK/dO36sDdq3/IZX4Grkg6H6JDEbcN5g288+F0AGJBzEvDimF9Z VU6wlrdtu/ReFFymF0mVE2ZI6AT1GFdv0uqw0JVqDaOUzXaozQaWFD6q7F31cL2r60pg EYROJKJUpL/Vtpx6njPf7UDQZqW6qzDpwuMotOKTCoOFIW4uECnjJkD/OO1ELYXQzqXW 207f98V38G7rJZzzdamWpFN6wCdgIvsiuhy1zzrCl3vYyPYlZcZ1OJk7xHAcJFQrOWtB 6FZIMBCKEwHyBqWZ/63PMXlx3sA7YUXOOUAl12vtP95yfq11CCeDGbi0lEtjvxGQUnlA ZBTg== 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 b69-v6si18070968pga.90.2018.09.03.10.35.17; Mon, 03 Sep 2018 10:35:32 -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 S1731343AbeICVyu (ORCPT + 99 others); Mon, 3 Sep 2018 17:54:50 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:47690 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728601AbeICVyu (ORCPT ); Mon, 3 Sep 2018 17:54:50 -0400 Received: from localhost (ip-213-127-74-90.ip.prioritytelecom.net [213.127.74.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 41BF4D16; Mon, 3 Sep 2018 17:33:40 +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.18 008/123] cifs: add missing debug entries for kconfig options Date: Mon, 3 Sep 2018 18:55:52 +0200 Message-Id: <20180903165719.837487584@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180903165719.499675257@linuxfoundation.org> References: <20180903165719.499675257@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.18-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 @@ -160,25 +160,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);