|
Lines 345-357
Link Here
|
| 345 |
#endif /* __i386__ || __amd64__ */ |
345 |
#endif /* __i386__ || __amd64__ */ |
| 346 |
|
346 |
|
| 347 |
/* |
347 |
/* |
| 348 |
* Filler function for proc/mtab |
348 |
* Filler function for proc/mounts |
| 349 |
* |
349 |
* |
| 350 |
* This file doesn't exist in Linux' procfs, but is included here so |
|
|
| 351 |
* users can symlink /compat/linux/etc/mtab to /proc/mtab |
| 352 |
*/ |
350 |
*/ |
| 353 |
static int |
351 |
static int |
| 354 |
linprocfs_domtab(PFS_FILL_ARGS) |
352 |
linprocfs_domounts(PFS_FILL_ARGS) |
| 355 |
{ |
353 |
{ |
| 356 |
struct nameidata nd; |
354 |
struct nameidata nd; |
| 357 |
struct mount *mp; |
355 |
struct mount *mp; |
|
Lines 402-408
Link Here
|
| 402 |
ADD_OPTION(MNT_NOSYMFOLLOW, "nosymfollow"); |
400 |
ADD_OPTION(MNT_NOSYMFOLLOW, "nosymfollow"); |
| 403 |
ADD_OPTION(MNT_NOATIME, "noatime"); |
401 |
ADD_OPTION(MNT_NOATIME, "noatime"); |
| 404 |
#undef ADD_OPTION |
402 |
#undef ADD_OPTION |
| 405 |
/* a real Linux mtab will also show NFS options */ |
403 |
/* a real Linux mounts will also show NFS options */ |
| 406 |
sbuf_printf(sb, " 0 0\n"); |
404 |
sbuf_printf(sb, " 0 0\n"); |
| 407 |
} |
405 |
} |
| 408 |
mtx_unlock(&mountlist_mtx); |
406 |
mtx_unlock(&mountlist_mtx); |
|
Lines 1031-1037
Link Here
|
| 1031 |
pfs_create_file(root, "modules", &linprocfs_domodules, |
1029 |
pfs_create_file(root, "modules", &linprocfs_domodules, |
| 1032 |
NULL, NULL, PFS_RD); |
1030 |
NULL, NULL, PFS_RD); |
| 1033 |
#endif |
1031 |
#endif |
| 1034 |
pfs_create_file(root, "mtab", &linprocfs_domtab, |
1032 |
pfs_create_file(root, "mounts", &linprocfs_domounts, |
| 1035 |
NULL, NULL, PFS_RD); |
1033 |
NULL, NULL, PFS_RD); |
| 1036 |
pfs_create_link(root, "self", &procfs_docurproc, |
1034 |
pfs_create_link(root, "self", &procfs_docurproc, |
| 1037 |
NULL, NULL, 0); |
1035 |
NULL, NULL, 0); |