/netbsd-src/external/bsd/am-utils/dist/amd/ |
H A D | amfs_toplvl.c | 180 if (stat(mp->am_path, &stb) < 0) { in amfs_toplvl_mount() 183 plog(XLOG_WARNING, "%s is not a directory", mp->am_path); in amfs_toplvl_mount() 276 if (lstat(mp->am_path, &stb) < 0) { in amfs_toplvl_umount() 278 dlog("lstat(%s): %m", mp->am_path); in amfs_toplvl_umount() 282 plog(XLOG_ERROR, "amfs_toplvl_umount: %s is not a directory, aborting.", mp->am_path); in amfs_toplvl_umount() 287 error = UMOUNT_FS(mp->am_path, mnttab_file_name, unmount_flags); in amfs_toplvl_umount() 298 plog(XLOG_WARNING, "amfs_toplvl_unmount retrying %s in 1s", mp->am_path); in amfs_toplvl_umount() 309 dlog("enabling forced unmounts for toplvl node %s", mp->am_path); in amfs_toplvl_umount() 313 dlog("enabling detached unmounts for toplvl node %s", mp->am_path); in amfs_toplvl_umount()
|
H A D | map.c | 155 if (STREQ(mp->am_path, path)) in path_to_exported_ap() 215 new_mp->am_path = str3cat(new_mp->am_path, in get_ap_child() 218 : mp->am_path, in get_ap_child() 220 dlog("setting path to %s", new_mp->am_path); in get_ap_child() 342 plog(XLOG_WARNING, "children of \"%s\" still exist - deleting anyway", mp->am_path); in remove_am() 413 mp->am_path = xstrdup(dir); in init_map() 470 mp->am_path); in free_map() 474 XFREE(mp->am_path); in free_map() 502 if (STREQ(mp->am_path, dir)) in find_ap_recursive() 594 plog(XLOG_INFO, "Flushed %s; dependent on %s", mp->am_path, fs->fs_host); in map_flush_srvr() [all …]
|
H A D | amfs_generic.c | 122 dlog("%s/%s mount ignored - going down", mp->am_path, fname); in amfs_lookup_node() 135 dlog(".. in %s gives %s", mp->am_path, mp->am_parent->am_path); in amfs_lookup_node() 206 dlog("matched %s in %s", expanded_fname, new_mp->am_path); in amfs_lookup_node() 270 p = ops_match(fs_opts, ivec, def_opts, new_mp->am_path, in amfs_lookup_one_location() 287 mp_dir = new_mp->am_path; in amfs_lookup_one_location() 316 plog(XLOG_MAP, "Map entry %s for %s did not match", ivec, new_mp->am_path); in amfs_lookup_one_location() 511 dlog("amfs_cont: '%s'", mp->am_path); in amfs_cont() 544 plog(XLOG_ERROR, "mount for %s got signal %d", mp->am_path, term); in amfs_cont() 575 plog(XLOG_ERROR, "%s: mount (amfs_cont): %m", mp->am_path); in amfs_cont() 595 dlog("Mounting %s returned success", cp->mp->am_path); in amfs_cont() [all …]
|
H A D | autil.c | 173 … plog(XLOG_WARNING, "node %s is currently being unmounted, ignoring timeout request", mp->am_path); in forcibly_timeout_mp() 175 plog(XLOG_WARNING, "ignoring timeout request for active node %s", mp->am_path); in forcibly_timeout_mp() 179 plog(XLOG_INFO, "\"%s\" forcibly timed out", mp->am_path); in forcibly_timeout_mp() 262 mp->am_path = str3cat(mp->am_path, mp->am_parent->am_path, "/", "."); in am_mounted() 295 plog(XLOG_INFO, "%s set to never timeout", mp->am_path); in am_mounted() 298 plog(XLOG_INFO, "%s set to timeout in %d seconds", mp->am_path, mp->am_timeo); in am_mounted() 639 plog(XLOG_WARNING, "Mount %s failed (%m); force unmount.", mp->am_path); in amfs_mount() 640 if ((error = UMOUNT_FS(mp->am_path, mnttab_file_name, in amfs_mount() 642 plog(XLOG_WARNING, "Forced umount %s failed: %m.", mp->am_path); in amfs_mount()
|
H A D | nfs_subr.c | 164 mp->am_path, in nfsproc_getattr_2_svc() 231 plog(XLOG_DEBUG, "\tlookup(%s, %s)", mp->am_path, argp->da_name); in nfsproc_lookup_2_svc() 326 plog(XLOG_DEBUG, "\treadlink(%s) = %s", mp->am_path, ln); in nfsproc_readlink_2_svc() 406 plog(XLOG_DEBUG, "\tremove(%s, %s)", mp->am_path, argp->da_name); in unlink_or_rmdir() 530 plog(XLOG_DEBUG, "\treaddir(%s)", mp->am_path); in nfsproc_readdir_2_svc() 562 plog(XLOG_DEBUG, "\tstat_fs(%s)", mp->am_path); in nfsproc_statfs_2_svc() 667 orig_ap->am_path, orig_ap->am_al->al_mnt->mf_info); in validate_ap() 864 pathlen = strlen(mp->am_path); in mp_to_fh() 872 memcpy(fp->u.fhh_path, mp->am_path, pathlen); /* making a filehandle */ in mp_to_fh() 906 pathlen = strlen(mp->am_path); in mp_to_fh3() [all …]
|
H A D | amfs_direct.c | 96 xp = amfs_generic_lookup_child(mp, mp->am_path + 1, &rc, VLOOK_CREATE); in amfs_direct_readlink()
|
H A D | readdir.c | 316 dlog("%s: End of readdir in %s", __func__, mp->am_path); in amfs_readdir_browsable() 435 dlog("%s: End of readdir in %s", __func__, mp->am_path); in amfs_readdir() 749 dlog("%s: End of readdir in %s", __func__, mp->am_path); in amfs_readdir3_browsable() 864 dlog("%s: End of readdir in %s", __func__, mp->am_path); in amfs_readdir3()
|
H A D | amq_subr.c | 289 xstrlcpy(tmp_buf, mp->am_path, sizeof(tmp_buf)); in amqproc_pawd_1_svc() 339 if (!xdr_amq_string(xdrs, &mp->am_path)) { in xdr_amq_mount_tree_node()
|
H A D | amd.h | 505 char *am_path; /* "/home/kiska": path of this node's mount point */ member
|
/netbsd-src/external/bsd/am-utils/dist/conf/autofs/ |
H A D | autofs_linux.c | 145 plog(XLOG_DEBUG, "autofs_get_fh for %s", mp->am_path); in autofs_get_fh() 203 fh->ioctlfd = open(mp->am_path, O_RDONLY); in autofs_get_mp() 353 ap_path = str3cat(NULL, mp->am_path, "/", name); in autofs_expire_one() 407 mp->am_path, name); in autofs_missing_one() 419 plog(XLOG_DEBUG, "\tlookup(%s, %s)", mp->am_path, name); in autofs_missing_one() 625 if ((err = mkdir(mp->am_path, 0555))) in autofs_mount_fs() 638 rmdir(mp->am_path); in autofs_mount_fs() 666 target2 = str3cat(NULL, mp->am_parent->am_path, "/", target); in autofs_mount_fs() 702 plog(XLOG_INFO, "autofs: bind-mounting %s -> %s", mp->am_path, target2); in autofs_mount_fs() 703 mkdir(mp->am_path, 0555); in autofs_mount_fs() [all …]
|
H A D | autofs_solaris_v1.c | 377 plog(XLOG_DEBUG, "autofs_get_fh for %s", mp->am_path); in autofs_get_fh() 398 fh->path = mp->am_path; in autofs_get_fh() 400 fh->map = mp->am_path; /* this is what we get back in readdir */ in autofs_get_fh() 480 char *space_hack = autofs_strdup_space_hack(mp->am_path); in autofs_mount_fs() 516 target2 = str3cat(NULL, mp->am_parent->am_path, "/", target); in autofs_mount_fs() 520 plog(XLOG_INFO, "autofs: converting from link to lofs (%s -> %s)", mp->am_path, target2); in autofs_mount_fs() 542 if ((err = mount_lofs(mp->am_path, target2, mf->mf_mopts, 1))) { in autofs_mount_fs() 562 char *space_hack = autofs_strdup_space_hack(mp->am_path); in autofs_umount_fs() 569 err = UMOUNT_FS(mp->am_path, mnttab_file_name, 1); in autofs_umount_fs() 612 plog(XLOG_INFO, "autofs: unmounting %s succeeded", mp->am_path); in autofs_umount_succeeded() [all …]
|
H A D | autofs_solaris_v2_v3.c | 967 plog(XLOG_DEBUG, "autofs_get_fh for %s", mp->am_path); in autofs_get_fh() 988 fh->path = mp->am_path; in autofs_get_fh() 990 fh->map = mp->am_path; /* this is what we get back in readdir */ in autofs_get_fh() 1098 target2 = str3cat(NULL, mp->am_parent->am_path, "/", target); in autofs_mount_fs() 1102 plog(XLOG_INFO, "autofs: converting from link to lofs (%s -> %s)", mp->am_path, target2); in autofs_mount_fs() 1126 if ((err = mount_lofs(mp->am_path, target2, mf->mf_mopts, 1))) { in autofs_mount_fs() 1147 err = UMOUNT_FS(mp->am_path, mnttab_file_name, 1); in autofs_umount_fs() 1181 plog(XLOG_INFO, "autofs: unmounting %s succeeded", mp->am_path); in autofs_umount_succeeded() 1205 plog(XLOG_INFO, "autofs: unmounting %s failed", mp->am_path); in autofs_umount_failed() 1221 if (!lstat(mp->am_path, &stb)) { in autofs_mount_succeeded() [all …]
|
/netbsd-src/external/bsd/am-utils/dist/ |
H A D | ChangeLog | 5960 * amd/amfs_auto.c (amfs_auto_lookup_one_mntfs): strdup am_path
|