Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2634797imm; Sun, 7 Oct 2018 08:23:14 -0700 (PDT) X-Google-Smtp-Source: ACcGV619ydR/jIw2eQ0JE2uciuQZ6W8gJgZAvXEWCK0nrbXL1tRTZlQaPHUK1mggR7n/CrRRRDKf X-Received: by 2002:a17:902:5a0f:: with SMTP id q15-v6mr20724474pli.253.1538925794089; Sun, 07 Oct 2018 08:23:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538925794; cv=none; d=google.com; s=arc-20160816; b=VQkjJ7fTaeQAQ5YG30CjMaNLSUXKWOgeL2oOgMhzSW6klx/HDYqGMu8x6AImAcVzzO PU9X9GgDuje2F8/Is4Br2TZKd2vnJKR3Xpyffw9bmLHeJFxDEPl0aqmhadAGfXsFO3+s yk9FHTqhudszIfg/CX408kuRh0gVb6rYiB/Cl7qCzVXbeHaC5YJPBCE/9sJrf+tt77Nf VWA5w32vNdqqc9UdMdB9sX7kjWvwV5ZtPxOE1U/YEJvKsPaReLi2HT/nSlhEuGcGD+4p TGiyH8WW8W3mALbzmysRC9wF1wQBGUoLFa+s5GpSFa4l2+AhHRJPJspyM21MHWE6va+5 F22w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=Zxe7vn0A8UdqPgdOJ6Uvaid5AmgrXrukmMdQ2vC997k=; b=y6O+0zG1s9V0mMyESOGXB3niwPW1KuisY0H2fqcHnr3QEVlSPj92VbH4iNkvSKK0/Z HWOs7wC39vxWk6Z1bwvMYoO4rs15VLTMJxm5oNItY8IZwNpOF0S5pNDRaQTOaFxu3Av8 7YYiIg12++Qffc6yhU3BS2hDDbm6oZ0hdWHbCpBb+OAhUKncpM+LIKfsuu54+o6zeNjW jkI67AAr5r6gFoewabjG11pKMzZybpt4BcgJERtkGvC27o3KPMDkjtpwekZUHgkEw8w7 3C9QahfvhqZQZWgZJPtF4MAmYqOPQE/By3FgfqEWfI8NXHZTI3kXVM/13+O88T5340FZ eG+A== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e26-v6si13401419pgb.161.2018.10.07.08.22.58; Sun, 07 Oct 2018 08:23:14 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728431AbeJGW3L (ORCPT + 99 others); Sun, 7 Oct 2018 18:29:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50000 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726448AbeJGW3L (ORCPT ); Sun, 7 Oct 2018 18:29:11 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1F56030B8F83; Sun, 7 Oct 2018 15:21:36 +0000 (UTC) Received: from rf.usersys.redhat.com (ovpn-116-29.gru2.redhat.com [10.97.116.29]) by smtp.corp.redhat.com (Postfix) with ESMTP id E722910021B2; Sun, 7 Oct 2018 15:21:34 +0000 (UTC) From: Rodrigo Freire To: linux-kernel@vger.kernel.org Cc: sfrench@samba.org, linux-cifs@vger.kernel.org, piastryyy@gmail.com Subject: [PATCH v3 0/2] CIFS: Info-level log support, print message when attempting mount. Date: Sun, 7 Oct 2018 12:21:24 -0300 Message-Id: X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.49]); Sun, 07 Oct 2018 15:21:36 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Steve, From our conversation over v2, I came out with this v3 patch, which I broke in two commits: * The first commit in cifs_debug.h, creating the cifs_info() function. - The aim of this commit is to allow to the developer to be able to print informational-level data without having to use pr_info, pr_notice etc, in line with other filesystems. . One interesting and noteworthy feature of cifs_info() is that it is transparent to the CIFS_DEBUG config state, either in "y" or "n". . Also, by using KERN_INFO level, it can be safely filtered by a maintainer / administrator, without cluttering their log monitors, since this is a low level alert. - I took the liberty to not add it inside the existing pr_debug, because of the eventual need of some developer to print stuff that should be printed not only in CIFS_DEBUG mode (as there are plenty of pr_notice scattered over the code). - Also, this is not a debug but a info message, so i liked cifs_info() more ;-) - I saw plenty of pr_notice() in CIFS code, but I resisted the urge to convert them to cifs_info(). * The second commit contains the code printing a cifs_info() when attempting a CIFS mount operation. Appreciate your review. V3: Created a new cifs_info() function, moved the mount attempt message to cifs_info V2: Created a loop to select the right cifs_dbg message to be printed, considering the current system's scenario, in order to avoid a duplicate message or stripping out important information in debug. Rodrigo Freire (2): CIFS: Adds information-level logging function CIFS: Print message when attempting a mount fs/cifs/cifs_debug.h | 16 ++++++++++++++++ fs/cifs/cifsfs.c | 7 ++++++- fs/cifs/transport.c | 2 +- 3 files changed, 23 insertions(+), 2 deletions(-) -- 1.8.3.1