Commit 4401054
fs: add the ability for statmount() to report the sb_source
/proc/self/mountinfo displays the source for the mount, but statmount()
doesn't yet have a way to return it. Add a new STATMOUNT_SB_SOURCE flag,
claim the 32-bit __spare1 field to hold the offset into the str[] array.
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Link: https://lore.kernel.org/r/20241111-statmount-v4-3-2eaf35d07a80@kernel.org
Acked-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>1 parent ed9d95f commit 4401054
2 files changed
Lines changed: 37 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5012 | 5012 | | |
5013 | 5013 | | |
5014 | 5014 | | |
| 5015 | + | |
| 5016 | + | |
| 5017 | + | |
| 5018 | + | |
| 5019 | + | |
| 5020 | + | |
| 5021 | + | |
| 5022 | + | |
| 5023 | + | |
| 5024 | + | |
| 5025 | + | |
| 5026 | + | |
| 5027 | + | |
| 5028 | + | |
| 5029 | + | |
| 5030 | + | |
| 5031 | + | |
| 5032 | + | |
| 5033 | + | |
| 5034 | + | |
| 5035 | + | |
| 5036 | + | |
| 5037 | + | |
| 5038 | + | |
| 5039 | + | |
| 5040 | + | |
5015 | 5041 | | |
5016 | 5042 | | |
5017 | 5043 | | |
| |||
5075 | 5101 | | |
5076 | 5102 | | |
5077 | 5103 | | |
| 5104 | + | |
| 5105 | + | |
| 5106 | + | |
| 5107 | + | |
5078 | 5108 | | |
5079 | 5109 | | |
5080 | 5110 | | |
| |||
5223 | 5253 | | |
5224 | 5254 | | |
5225 | 5255 | | |
| 5256 | + | |
| 5257 | + | |
| 5258 | + | |
5226 | 5259 | | |
5227 | 5260 | | |
5228 | 5261 | | |
| |||
5244 | 5277 | | |
5245 | 5278 | | |
5246 | 5279 | | |
5247 | | - | |
| 5280 | + | |
| 5281 | + | |
5248 | 5282 | | |
5249 | 5283 | | |
5250 | 5284 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
| 177 | + | |
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| 213 | + | |
213 | 214 | | |
214 | 215 | | |
215 | 216 | | |
| |||
0 commit comments