Commit ed9d95f
fs: add the ability for statmount() to report the fs_subtype
/proc/self/mountinfo prints out the sb->s_subtype after the type. This
is particularly useful for disambiguating FUSE mounts (at least when the
userland driver bothers to set it). Add STATMOUNT_FS_SUBTYPE and claim
one of the __spare2 fields to point to the offset into the str[] array.
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Ian Kent <raven@themaw.net>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Link: https://lore.kernel.org/r/20241111-statmount-v4-2-2eaf35d07a80@kernel.org
Acked-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>1 parent 75ead69 commit ed9d95f
2 files changed
+21
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5004 | 5004 | | |
5005 | 5005 | | |
5006 | 5006 | | |
| 5007 | + | |
| 5008 | + | |
| 5009 | + | |
| 5010 | + | |
| 5011 | + | |
| 5012 | + | |
| 5013 | + | |
| 5014 | + | |
5007 | 5015 | | |
5008 | 5016 | | |
5009 | 5017 | | |
| |||
5040 | 5048 | | |
5041 | 5049 | | |
5042 | 5050 | | |
5043 | | - | |
| 5051 | + | |
5044 | 5052 | | |
5045 | 5053 | | |
5046 | 5054 | | |
| |||
5063 | 5071 | | |
5064 | 5072 | | |
5065 | 5073 | | |
| 5074 | + | |
| 5075 | + | |
| 5076 | + | |
| 5077 | + | |
5066 | 5078 | | |
5067 | 5079 | | |
5068 | 5080 | | |
| |||
5208 | 5220 | | |
5209 | 5221 | | |
5210 | 5222 | | |
| 5223 | + | |
| 5224 | + | |
| 5225 | + | |
5211 | 5226 | | |
5212 | 5227 | | |
5213 | 5228 | | |
| |||
5229 | 5244 | | |
5230 | 5245 | | |
5231 | 5246 | | |
5232 | | - | |
| 5247 | + | |
5233 | 5248 | | |
5234 | 5249 | | |
5235 | 5250 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
177 | 179 | | |
178 | 180 | | |
179 | 181 | | |
| |||
207 | 209 | | |
208 | 210 | | |
209 | 211 | | |
| 212 | + | |
210 | 213 | | |
211 | 214 | | |
212 | 215 | | |
| |||
0 commit comments