All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Expose cifs module parameters in sysfs
@ 2016-09-30 20:21 Germano Percossi
       [not found] ` <1475266865-19376-1-git-send-email-germano.percossi-Sxgqhf6Nn4DQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Germano Percossi @ 2016-09-30 20:21 UTC (permalink / raw)
  To: linux-cifs-u79uwXL29TY76Z2rM5mHXA
  Cc: Germano Percossi, smfrench-Re5JQEeQqe8AvxtiuMwx3w

Signed-off-by: Germano Percossi <germano.percossi-Sxgqhf6Nn4DQT0dZR+AlfA@public.gmane.org>
---
 fs/cifs/cifsfs.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c
index db8a404..7fb17f6 100644
--- a/fs/cifs/cifsfs.c
+++ b/fs/cifs/cifsfs.c
@@ -64,15 +64,15 @@ unsigned int global_secflags = CIFSSEC_DEF;
 unsigned int sign_CIFS_PDUs = 1;
 static const struct super_operations cifs_super_ops;
 unsigned int CIFSMaxBufSize = CIFS_MAX_MSGSIZE;
-module_param(CIFSMaxBufSize, int, 0);
+module_param(CIFSMaxBufSize, int, 0444);
 MODULE_PARM_DESC(CIFSMaxBufSize, "Network buffer size (not including header). "
 				 "Default: 16384 Range: 8192 to 130048");
 unsigned int cifs_min_rcv = CIFS_MIN_RCV_POOL;
-module_param(cifs_min_rcv, int, 0);
+module_param(cifs_min_rcv, int, 0444);
 MODULE_PARM_DESC(cifs_min_rcv, "Network buffers in pool. Default: 4 Range: "
 				"1 to 64");
 unsigned int cifs_min_small = 30;
-module_param(cifs_min_small, int, 0);
+module_param(cifs_min_small, int, 0444);
 MODULE_PARM_DESC(cifs_min_small, "Small network buffers in pool. Default: 30 "
 				 "Range: 2 to 256");
 unsigned int cifs_max_pending = CIFS_MAX_REQ;
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Expose cifs module parameters in sysfs
       [not found] ` <1475266865-19376-1-git-send-email-germano.percossi-Sxgqhf6Nn4DQT0dZR+AlfA@public.gmane.org>
@ 2016-10-01  2:30   ` Steve French
  0 siblings, 0 replies; 2+ messages in thread
From: Steve French @ 2016-10-01  2:30 UTC (permalink / raw)
  To: Germano Percossi; +Cc: linux-cifs-u79uwXL29TY76Z2rM5mHXA

thx - pushed to cifs-2.6.git for-next

Now all cifs.ko module time load time configuration parameters are visible in
/sys/modules/cifs/parameters

On Fri, Sep 30, 2016 at 3:21 PM, Germano Percossi
<germano.percossi-Sxgqhf6Nn4DQT0dZR+AlfA@public.gmane.org> wrote:
> Signed-off-by: Germano Percossi <germano.percossi-Sxgqhf6Nn4DQT0dZR+AlfA@public.gmane.org>
> ---
>  fs/cifs/cifsfs.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c
> index db8a404..7fb17f6 100644
> --- a/fs/cifs/cifsfs.c
> +++ b/fs/cifs/cifsfs.c
> @@ -64,15 +64,15 @@ unsigned int global_secflags = CIFSSEC_DEF;
>  unsigned int sign_CIFS_PDUs = 1;
>  static const struct super_operations cifs_super_ops;
>  unsigned int CIFSMaxBufSize = CIFS_MAX_MSGSIZE;
> -module_param(CIFSMaxBufSize, int, 0);
> +module_param(CIFSMaxBufSize, int, 0444);
>  MODULE_PARM_DESC(CIFSMaxBufSize, "Network buffer size (not including header). "
>                                  "Default: 16384 Range: 8192 to 130048");
>  unsigned int cifs_min_rcv = CIFS_MIN_RCV_POOL;
> -module_param(cifs_min_rcv, int, 0);
> +module_param(cifs_min_rcv, int, 0444);
>  MODULE_PARM_DESC(cifs_min_rcv, "Network buffers in pool. Default: 4 Range: "
>                                 "1 to 64");
>  unsigned int cifs_min_small = 30;
> -module_param(cifs_min_small, int, 0);
> +module_param(cifs_min_small, int, 0444);
>  MODULE_PARM_DESC(cifs_min_small, "Small network buffers in pool. Default: 30 "
>                                  "Range: 2 to 256");
>  unsigned int cifs_max_pending = CIFS_MAX_REQ;
> --
> 1.9.1
>



-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-10-01  2:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-30 20:21 [PATCH] Expose cifs module parameters in sysfs Germano Percossi
     [not found] ` <1475266865-19376-1-git-send-email-germano.percossi-Sxgqhf6Nn4DQT0dZR+AlfA@public.gmane.org>
2016-10-01  2:30   ` Steve French

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.