All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] common: add a helper for setting module param
@ 2020-04-10  1:20 Chengguang Xu
  2020-04-10  1:20 ` [PATCH 2/2] overlay/072: test for sharing inode with whiteout files Chengguang Xu
  2020-04-12 11:21 ` [PATCH 1/2] common: add a helper for setting module param Eryu Guan
  0 siblings, 2 replies; 10+ messages in thread
From: Chengguang Xu @ 2020-04-10  1:20 UTC (permalink / raw)
  To: guaneryu; +Cc: fstests, linux-unionfs, miklos, amir73il, Chengguang Xu

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



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

end of thread, other threads:[~2020-04-13 12:23 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [PATCH 1/2] common: add a helper for setting module param Eryu Guan
2020-04-13  1:51   ` Chengguang Xu

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.