Commit f9af549
fs: export mount options via statmount()
statmount() can export arbitrary strings, so utilize the __spare1 slot
for a mnt_opts string pointer, and then support asking for and setting
the mount options during statmount(). This calls into the helper for
showing mount options, which already uses a seq_file, so fits in nicely
with our existing mechanism for exporting strings via statmount().
Signed-off-by: Josef Bacik <[email protected]>
Link: https://lore.kernel.org/r/3aa6bf8bd5d0a21df9ebd63813af8ab532c18276.1719257716.git.josef@toxicpanda.com
Reviewed-by: Jeff Layton <[email protected]>
[brauner: only call sb->s_op->show_options()]
Signed-off-by: Christian Brauner <[email protected]>1 parent c72b6b7 commit f9af549
2 files changed
+38
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4980 | 4980 | | |
4981 | 4981 | | |
4982 | 4982 | | |
| 4983 | + | |
| 4984 | + | |
| 4985 | + | |
| 4986 | + | |
| 4987 | + | |
| 4988 | + | |
| 4989 | + | |
| 4990 | + | |
| 4991 | + | |
| 4992 | + | |
| 4993 | + | |
| 4994 | + | |
| 4995 | + | |
| 4996 | + | |
| 4997 | + | |
| 4998 | + | |
| 4999 | + | |
| 5000 | + | |
| 5001 | + | |
| 5002 | + | |
| 5003 | + | |
| 5004 | + | |
| 5005 | + | |
| 5006 | + | |
| 5007 | + | |
| 5008 | + | |
| 5009 | + | |
| 5010 | + | |
4983 | 5011 | | |
4984 | 5012 | | |
4985 | 5013 | | |
| |||
5000 | 5028 | | |
5001 | 5029 | | |
5002 | 5030 | | |
| 5031 | + | |
| 5032 | + | |
| 5033 | + | |
| 5034 | + | |
5003 | 5035 | | |
5004 | 5036 | | |
5005 | 5037 | | |
| |||
5130 | 5162 | | |
5131 | 5163 | | |
5132 | 5164 | | |
| 5165 | + | |
| 5166 | + | |
| 5167 | + | |
5133 | 5168 | | |
5134 | 5169 | | |
5135 | 5170 | | |
| |||
5151 | 5186 | | |
5152 | 5187 | | |
5153 | 5188 | | |
5154 | | - | |
| 5189 | + | |
5155 | 5190 | | |
5156 | 5191 | | |
5157 | 5192 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| 209 | + | |
209 | 210 | | |
210 | 211 | | |
211 | 212 | | |
| |||
0 commit comments