All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eryu Guan <guan@eryu.me>
To: Chengguang Xu <cgxu519@mykernel.net>
Cc: guaneryu@gmail.com, fstests@vger.kernel.org,
	linux-unionfs@vger.kernel.org, miklos@szeredi.hu,
	amir73il@gmail.com
Subject: Re: [PATCH 1/2] common: add a helper for setting module param
Date: Sun, 12 Apr 2020 19:21:21 +0800	[thread overview]
Message-ID: <20200412112121.GB3923113@desktop> (raw)
In-Reply-To: <20200410012059.27210-1-cgxu519@mykernel.net>

On Fri, Apr 10, 2020 at 09:20:58AM +0800, Chengguang Xu wrote:
> Add a new helper _set_fs_module_param for setting
> module param.
> 
> Signed-off-by: Chengguang Xu <cgxu519@mykernel.net>

I think this could go with the test, so a single patch introduces both
test case and the needed helper functions, and usually that's easier to
review, as we could know how the helper be used from the context.

Thanks,
Eryu

> ---
>  common/module | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/common/module b/common/module
> index 39e4e793..148e8c8f 100644
> --- a/common/module
> +++ b/common/module
> @@ -81,3 +81,12 @@ _get_fs_module_param()
>  {
>  	cat /sys/module/${FSTYP}/parameters/${1} 2>/dev/null
>  }
> + # Set the value of a filesystem module parameter
> + # at /sys/module/$FSTYP/parameters/$PARAM
> + #
> + # Usage example:
> + #   _set_fs_module_param param value
> + _set_fs_module_param()
> +{
> +	echo ${2} > /sys/module/${FSTYP}/parameters/${1} 2>/dev/null
> +}
> -- 
> 2.20.1
> 
> 

  parent reply	other threads:[~2020-04-12 11:20 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-10  1:20 [PATCH 1/2] common: add a helper for setting module param Chengguang Xu
2020-04-10  1:20 ` [PATCH 2/2] overlay/072: test for sharing inode with whiteout files Chengguang Xu
2020-04-10  7:21   ` Amir Goldstein
2020-04-13 10:15     ` Chengguang Xu
2020-04-13 12:14       ` Amir Goldstein
2020-04-12 11:27   ` Eryu Guan
2020-04-12 11:34     ` Amir Goldstein
2020-04-13  1:57       ` Chengguang Xu
2020-04-12 11:21 ` Eryu Guan [this message]
2020-04-13  1:51   ` [PATCH 1/2] common: add a helper for setting module param Chengguang Xu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200412112121.GB3923113@desktop \
    --to=guan@eryu.me \
    --cc=amir73il@gmail.com \
    --cc=cgxu519@mykernel.net \
    --cc=fstests@vger.kernel.org \
    --cc=guaneryu@gmail.com \
    --cc=linux-unionfs@vger.kernel.org \
    --cc=miklos@szeredi.hu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.