| /netbsd-src/external/bsd/am-utils/dist/amd/ |
| H A D | amd.h | 211 typedef struct am_node am_node; typedef 243 typedef int (*vmount_fs) (am_node *, mntfs *); 244 typedef int (*vumount_fs) (am_node *, mntfs *); 245 typedef am_node *(*vlookup_child) (am_node *, char *, int *, int); 246 typedef am_node *(*vmount_child) (am_node *, int *); 247 typedef int (*vreaddir) (am_node *, voidp, voidp, voidp, u_int); 248 typedef am_node *(*vreadlink) (am_node *, int *); 500 struct am_node { struct 507 am_node *am_parent; /* Parent of this node */ argument 508 am_node *am_ysib; /* Younger sibling of this node */ argument [all …]
|
| H A D | map.c | 69 static am_node *root_node; /* The root of the mount tree */ 70 static am_node **exported_ap = (am_node **) NULL; 103 static void exported_ap_free(am_node *mp); 104 static void remove_am(am_node *mp); 105 static am_node *get_root_ap(char *dir); 111 am_node * 119 am_node * 135 am_node * 147 am_node * 151 am_node *mp; in path_to_exported_ap() [all …]
|
| H A D | ops_TEMPLATE.c | 62 static int foofs_mount(am_node *mp, mntfs *mf); 63 static int foofs_umount(am_node *mp, mntfs *mf); 64 static am_node *foofs_lookuppn(am_node *mp, char *fname, int *error_return, int op); 65 static int foofs_readdir(am_node *mp, void cookie, voidp dp, voidp ep, u_int count); 66 static am_node *foofs_readlink(am_node *mp, int *error_return); 67 static void foofs_mounted(am_node *am, mntfs *mf); 68 static void foofs_umounted(am_node *mp, mntfs *mf); 137 foofs_mount(am_node *mp) in foofs_mount() 169 foofs_umount(am_node *mp) in foofs_umount() 201 static am_node * [all …]
|
| H A D | amfs_error.c | 57 static int amfs_error_mount(am_node *am, mntfs *mf); 58 static int amfs_error_umount(am_node *am, mntfs *mf); 98 amfs_error_mount(am_node *am, mntfs *mf) in amfs_error_mount() 105 amfs_error_umount(am_node *am, mntfs *mf) in amfs_error_umount() 119 am_node * 120 amfs_error_lookup_child(am_node *mp, char *fname, int *error_return, int op) in amfs_error_lookup_child() 132 am_node * 133 amfs_error_mount_child(am_node *ap, int *error_return) in amfs_error_mount_child() 146 amfs_error_readdir(am_node *mp, voidp cookie, voidp dp, voidp ep, u_int count) in amfs_error_readdir()
|
| H A D | ops_ext.c | 54 static int ext2_mount(am_node *am, mntfs *mf); 55 static int ext3_mount(am_node *am, mntfs *mf); 56 static int ext4_mount(am_node *am, mntfs *mf); 57 static int ext_umount(am_node *am, mntfs *mf); 184 ext_mount(am_node *am, mntfs *mf, char *mount_type, in ext_mount() 202 ext2_mount(am_node *am, mntfs *mf) in ext2_mount() 208 ext3_mount(am_node *am, mntfs *mf) in ext3_mount() 214 ext4_mount(am_node *am, mntfs *mf) in ext4_mount() 220 ext_umount(am_node *am, mntfs *mf) in ext_umount()
|
| H A D | amfs_generic.c | 77 am_node *mp; /* Node we are trying to mount */ 88 static am_node *amfs_lookup_node(am_node *mp, char *fname, int *error_return); 89 static am_loc *amfs_lookup_one_location(am_node *new_mp, mntfs *mf, char *ivec, 91 static am_loc **amfs_lookup_loc(am_node *new_mp, int *error_return); 96 static char *amfs_parse_defaults(am_node *mp, mntfs *mf, char *def_opts); 102 static am_node * 103 amfs_lookup_node(am_node *mp, char *fname, int *error_return) in amfs_lookup_node() 105 am_node *new_mp; in amfs_lookup_node() 251 amfs_lookup_one_location(am_node *new_mp, mntfs *mf, char *ivec, in amfs_lookup_one_location() 354 amfs_lookup_loc(am_node *new_mp, int *error_return) in amfs_lookup_loc() [all …]
|
| H A D | amfs_direct.c | 55 static am_node *amfs_direct_readlink(am_node *mp, int *error_return); 86 static am_node * 87 amfs_direct_readlink(am_node *mp, int *error_return) in amfs_direct_readlink() 89 am_node *xp; in amfs_direct_readlink()
|
| H A D | nfs_subr.c | 93 static am_node *fh_to_mp3(am_nfs_fh *fhp, int *rp, int vop); 94 static am_node *fh_to_mp(am_nfs_fh *fhp); 95 static void count_map_entries(const am_node *mp, u_int *out_blocks, u_int *out_bfree, u_int *out_ba… 99 do_readlink(am_node *mp, int *error_return) in do_readlink() 141 am_node *mp; in nfsproc_getattr_2_svc() 206 am_node *mp; in nfsproc_lookup_2_svc() 229 am_node *ap; in nfsproc_lookup_2_svc() 262 nfs_quick_reply(am_node *mp, int error) in nfs_quick_reply() 306 am_node *mp; in nfsproc_readlink_2_svc() 390 am_node *mp = fh_to_mp3(&argp->da_fhandle, &retry, VLOOK_DELETE); in unlink_or_rmdir() [all …]
|
| H A D | amq_subr.c | 71 static am_node *mp; in amqproc_mnttree_1_svc() 85 am_node *mp = find_ap(*(char **) argp); in amqproc_umnt_1_svc() 115 am_node *mp = find_ap(*(char **) argp); in amqproc_sync_umnt_1_svc_child() 163 static am_node *mp; in amqproc_export_1_svc() 266 am_node *mp; in amqproc_pawd_1_svc() 333 am_node *mp = (am_node *) objp; in xdr_amq_mount_tree_node() 377 am_node *mp = (am_node *) objp; in xdr_amq_mount_subtree() 401 am_node *mp = (am_node *) objp; in xdr_amq_mount_tree() 402 am_node *mnil = NULL; in xdr_amq_mount_tree()
|
| H A D | amfs_linkx.c | 53 static int amfs_linkx_mount(am_node *mp, mntfs *mf); 54 static int amfs_linkx_umount(am_node *mp, mntfs *mf); 82 amfs_linkx_mount(am_node *mp, mntfs *mf) in amfs_linkx_mount() 108 amfs_linkx_umount(am_node *mp, mntfs *mf) in amfs_linkx_umount()
|
| H A D | amfs_link.c | 53 static int amfs_link_mount(am_node *mp, mntfs *mf); 54 static int amfs_link_umount(am_node *mp, mntfs *mf); 121 amfs_link_mount(am_node *mp, mntfs *mf) in amfs_link_mount() 128 amfs_link_umount(am_node *mp, mntfs *mf) in amfs_link_umount()
|
| H A D | ops_lofs.c | 54 static int lofs_mount(am_node *am, mntfs *mf); 55 static int lofs_umount(am_node *am, mntfs *mf); 136 lofs_mount(am_node *am, mntfs *mf) in lofs_mount() 152 lofs_umount(am_node *am, mntfs *mf) in lofs_umount()
|
| H A D | ops_xfs.c | 54 static int xfs_mount(am_node *am, mntfs *mf); 55 static int xfs_umount(am_node *am, mntfs *mf); 147 xfs_mount(am_node *am, mntfs *mf) in xfs_mount() 164 xfs_umount(am_node *am, mntfs *mf) in xfs_umount()
|
| H A D | ops_efs.c | 54 static int efs_mount(am_node *am, mntfs *mf); 55 static int efs_umount(am_node *am, mntfs *mf); 150 efs_mount(am_node *am, mntfs *mf) in efs_mount() 167 efs_umount(am_node *am, mntfs *mf) in efs_umount()
|
| H A D | ops_ufs.c | 54 static int ufs_mount(am_node *am, mntfs *mf); 55 static int ufs_umount(am_node *am, mntfs *mf); 160 ufs_mount(am_node *am, mntfs *mf) in ufs_mount() 177 ufs_umount(am_node *am, mntfs *mf) in ufs_umount()
|
| H A D | amfs_program.c | 54 static int amfs_program_mount(am_node *am, mntfs *mf); 55 static int amfs_program_umount(am_node *am, mntfs *mf); 200 amfs_program_mount(am_node *am, mntfs *mf) in amfs_program_mount() 207 amfs_program_umount(am_node *am, mntfs *mf) in amfs_program_umount()
|
| H A D | amfs_nfsx.c | 67 am_node *nx_mp; 72 static int amfs_nfsx_mount(am_node *am, mntfs *mf); 73 static int amfs_nfsx_umount(am_node *am, mntfs *mf); 305 am_node *mp = nx->nx_mp; in amfs_nfsx_cont() 356 am_node *mp = nx->nx_mp; in try_amfs_nfsx_mount() 366 amfs_nfsx_remount(am_node *am, mntfs *mf, int fg) in amfs_nfsx_remount() 427 amfs_nfsx_mount(am_node *am, mntfs *mf) in amfs_nfsx_mount() 439 amfs_nfsx_umount(am_node *am, mntfs *mf) in amfs_nfsx_umount()
|
| H A D | autil.c | 159 forcibly_timeout_mp(am_node *mp) in forcibly_timeout_mp() 241 am_mounted(am_node *mp) in am_mounted() 352 assign_error_mntfs(am_node *mp) in assign_error_mntfs() 409 am_node * 410 next_nonerror_node(am_node *xp) in next_nonerror_node() 447 amfs_mount(am_node *mp, mntfs *mf, char *opts) in amfs_mount() 656 am_unmounted(am_node *mp) in am_unmounted() 721 am_node *mp_parent = mp->am_parent; in am_unmounted() 723 am_node fake_mp; in am_unmounted()
|
| H A D | readdir.c | 60 static nfsentry *make_entry_chain(am_node *mp, const nfsentry *current_chain, int fully_browsable); 61 static int amfs_readdir_browsable(am_node *mp, nfscookie cookie, nfsdirlist *dp, nfsentry *ep, u_in… 93 make_entry_chain(am_node *mp, const nfsentry *current_chain, int fully_browsable) in make_entry_chain() 203 amfs_readdir_browsable(am_node *mp, nfscookie cookie, nfsdirlist *dp, nfsentry *ep, u_int count, in… in amfs_readdir_browsable() 366 amfs_readdir(am_node *mp, nfscookie cookie, nfsdirlist *dp, nfsentry *ep, u_int count) in amfs_readdir() 369 am_node *xp; in amfs_readdir() 454 am_node *xp_next = next_nonerror_node(xp->am_osib); in amfs_readdir() 518 make_entry_chain3(am_node *mp, const am_entry3 *current_chain, int fully_browsable) in make_entry_chain3() 639 amfs_readdir3_browsable(am_node *mp, voidp cookie, in amfs_readdir3_browsable() 799 amfs_readdir3(am_node *mp, voidp cookie, in amfs_readdir3() [all …]
|
| H A D | ops_tmpfs.c | 54 static int tmpfs_mount(am_node *am, mntfs *mf); 55 static int tmpfs_umount(am_node *am, mntfs *mf); 171 tmpfs_mount(am_node *am, mntfs *mf) in tmpfs_mount() 188 tmpfs_umount(am_node *am, mntfs *mf) in tmpfs_umount()
|
| H A D | ops_cdfs.c | 54 static int cdfs_mount(am_node *am, mntfs *mf); 55 static int cdfs_umount(am_node *am, mntfs *mf); 222 cdfs_mount(am_node *am, mntfs *mf) in cdfs_mount() 238 cdfs_umount(am_node *am, mntfs *mf) in cdfs_umount()
|
| H A D | amfs_nfsl.c | 60 static int amfs_nfsl_mount(am_node *mp, mntfs *mf); 61 static int amfs_nfsl_umount(am_node *mp, mntfs *mf); 156 amfs_nfsl_mount(am_node *mp, mntfs *mf) in amfs_nfsl_mount() 175 amfs_nfsl_umount(am_node *mp, mntfs *mf) in amfs_nfsl_umount()
|
| /netbsd-src/external/bsd/am-utils/dist/conf/autofs/ |
| H A D | autofs_linux.c | 79 static am_node **hash; 110 hash_insert(int fd, am_node *mp) in hash_insert() 140 autofs_get_fh(am_node *mp) in autofs_get_fh() 170 autofs_mounted(am_node *mp) in autofs_mounted() 198 autofs_get_mp(am_node *mp) in autofs_get_mp() 209 autofs_release_mp(am_node *mp) in autofs_release_mp() 227 autofs_release_fh(am_node *mp) in autofs_release_fh() 320 autofs_lookup_failed(am_node *mp, char *name) in autofs_lookup_failed() 344 autofs_expire_one(am_node *mp, char *name, autofs_wqt_t token) in autofs_expire_one() 347 am_node *ap; in autofs_expire_one() [all …]
|
| H A D | autofs_solaris_v1.c | 190 am_node *mp, *ap; in autofs_mount_1_req() 247 am_node *mp = NULL; in autofs_unmount_1_req() 370 autofs_get_fh(am_node *mp) in autofs_get_fh() 408 autofs_mounted(am_node *mp) in autofs_mounted() 416 autofs_release_fh(am_node *mp) in autofs_release_fh() 428 autofs_get_mp(am_node *mp) in autofs_get_mp() 435 autofs_release_mp(am_node *mp) in autofs_release_mp() 476 autofs_mount_fs(am_node *mp, mntfs *mf) in autofs_mount_fs() 559 autofs_umount_fs(am_node *mp, mntfs *mf) in autofs_umount_fs() 594 autofs_umount_succeeded(am_node *mp) in autofs_umount_succeeded() [all …]
|
| H A D | autofs_solaris_v2_v3.c | 500 am_node *mp, *new_mp; in autofs_lookup_2_req() 568 am_node *mp, *new_mp; in autofs_mount_2_req() 696 am_node *mp = NULL; in autofs_unmount_2_req() 801 am_node *mp; in autofs_readdir_2_req() 960 autofs_get_fh(am_node *mp) in autofs_get_fh() 1003 autofs_mounted(am_node *mp) in autofs_mounted() 1011 autofs_release_fh(am_node *mp) in autofs_release_fh() 1023 autofs_get_mp(am_node *mp) in autofs_get_mp() 1030 autofs_release_mp(am_node *mp) in autofs_release_mp() 1071 autofs_mount_fs(am_node *mp, mntfs *mf) in autofs_mount_fs() [all …]
|