Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1825327imm; Mon, 3 Sep 2018 10:24:38 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaQFwPsHMnc9X/+gqNXZUBalu6oe8VlfHgzHW7yIXbZGJgix71vPs4Nwg8KSgT3lZ+Ql93Y X-Received: by 2002:a63:6849:: with SMTP id d70-v6mr26904923pgc.7.1535995478676; Mon, 03 Sep 2018 10:24:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535995478; cv=none; d=google.com; s=arc-20160816; b=BktHSV/Nd8UqNHLEBZ+HoG3xivx06fAm3nrknPjzIq1IMjNJVMo8jgMt6IqzjGucuJ HWzjmgauKRkApbhlqGTe8rwblGExTsqAJ3eFcAAKhRXQTBuQSEj7PWBan/IEC1OVXO0e pgipNcQLDlIKnPn2Q3AB8wGb3me/FQYvZCXhgwFw6Khk2NvHgfwN2+W78MbNa3rcZN8T ZAR+SJcYPm++EIRNqoXwXkccJfGOZtikeojOhEZiHvIcxNgw29Y4LsynOVyCimOUC0Gr iWtjnTtn4F6hueRbh4D7FDkPmBFqSgtZYs+ltU2b4p1kyhRPsoQWu/YQY/qd2eRS21vg qz4A== 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=7+GD79WIZEQ4iGxka1JmyagoynrsDnNPid/YRFbahFE=; b=JMN52V7PMTR0xzkh3wMlCjLR8J38Q81MJbedJZV3OyWmPze6nLStFGuIkjyXAmM4SL hCSDooYlwHw9PYy9QE1bby6rkOnWS9qe2nTByS44GoQ8MhWaLs639TMFNCCgty2Tahyh AWOGMn6EYUsY5D5ratqK5N3QE6T32N8PyQeUxxIaRky8VMTkOcGoqVWES6eKXEoekYUC 6uUxFzhF8S4z5dRNsDuh9z6tWyXuKhjlR3cCSsOrmvJkdwa07hcrc1goeiuPnESt1Arw ZmhI8qLno3XPC47zfmQVGy9SX66GxdEWl3x7Hwc8k3yFXU1OEVIFtscxSRLICrUPm5Oy DSow== 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 a34-v6si16557006pld.149.2018.09.03.10.24.23; Mon, 03 Sep 2018 10:24:38 -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 S1730295AbeICVnc (ORCPT + 99 others); Mon, 3 Sep 2018 17:43:32 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:45292 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728636AbeICVnb (ORCPT ); Mon, 3 Sep 2018 17:43:31 -0400 Received: from localhost (ip-213-127-74-90.ip.prioritytelecom.net [213.127.74.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 71C92D00; Mon, 3 Sep 2018 17:22:25 +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.14 084/165] cifs: add missing debug entries for kconfig options Date: Mon, 3 Sep 2018 18:56:10 +0200 Message-Id: <20180903165659.295783631@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180903165655.003605184@linuxfoundation.org> References: <20180903165655.003605184@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.14-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);