Lines Matching refs:nd_root
225 nd->nd_root.ndm_path = zalloc(ZV_NAMEI); in nfs_boot_init()
226 nd->nd_root.ndm_mntfrom = zalloc(ZV_NAMEI); in nfs_boot_init()
228 sin_p = &nd->nd_root.ndm_saddr; in nfs_boot_init()
232 if (netboot_rootpath(&sin_p->sin_addr, nd->nd_root.ndm_host, in nfs_boot_init()
233 sizeof(nd->nd_root.ndm_host), in nfs_boot_init()
234 nd->nd_root.ndm_path, MAXPATHLEN) == TRUE) { in nfs_boot_init()
267 error = bp_getfile(&bp_sin, "root", &nd->nd_root.ndm_saddr, in nfs_boot_init()
268 nd->nd_root.ndm_host, nd->nd_root.ndm_path); in nfs_boot_init()
287 snprintf(check_path, MAXPATHLEN, "%s/private", nd->nd_root.ndm_path); in nfs_boot_init()
288 if ((nd->nd_root.ndm_saddr.sin_addr.s_addr in nfs_boot_init()
316 nd->nd_root.ndm_nfsv3 = v3; in nfs_boot_getfh()
317 nd->nd_root.ndm_sotype = sotype; in nfs_boot_getfh()
318 error = get_file_handle(&nd->nd_root); in nfs_boot_getfh()
872 if (nd.nd_root.ndm_mntfrom) { in nfs_mountroot()
873 NFS_ZFREE(ZV_NAMEI, nd.nd_root.ndm_mntfrom); in nfs_mountroot()
875 if (nd.nd_root.ndm_path) { in nfs_mountroot()
876 NFS_ZFREE(ZV_NAMEI, nd.nd_root.ndm_path); in nfs_mountroot()
930 if ((error = nfs_mount_diskless(&nd.nd_root, "/", flags, &vp, &mp, ctx))) in nfs_mountroot()
932 if ((error = nfs_mount_diskless(&nd.nd_root, "/", MNT_ROOTFS, &vp, &mp, ctx))) in nfs_mountroot()
955 printf("root on %s\n", nd.nd_root.ndm_mntfrom); in nfs_mountroot()
976 if (nd.nd_root.ndm_mntfrom) { in nfs_mountroot()
977 NFS_ZFREE(ZV_NAMEI, nd.nd_root.ndm_mntfrom); in nfs_mountroot()
979 if (nd.nd_root.ndm_path) { in nfs_mountroot()
980 NFS_ZFREE(ZV_NAMEI, nd.nd_root.ndm_path); in nfs_mountroot()