From: Chengguang Xu <cgxu519@mykernel.net>
To: guaneryu@gmail.com
Cc: fstests@vger.kernel.org, linux-unionfs@vger.kernel.org,
miklos@szeredi.hu, amir73il@gmail.com,
Chengguang Xu <cgxu519@mykernel.net>
Subject: [PATCH 1/2] common: add a helper for setting module param
Date: Fri, 10 Apr 2020 09:20:58 +0800 [thread overview]
Message-ID: <20200410012059.27210-1-cgxu519@mykernel.net> (raw)
Add a new helper _set_fs_module_param for setting
module param.
Signed-off-by: Chengguang Xu <cgxu519@mykernel.net>
---
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
next reply other threads:[~2020-04-10 1:37 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-10 1:20 Chengguang Xu [this message]
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 ` [PATCH 1/2] common: add a helper for setting module param Eryu Guan
2020-04-13 1:51 ` 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=20200410012059.27210-1-cgxu519@mykernel.net \
--to=cgxu519@mykernel.net \
--cc=amir73il@gmail.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox