Lines Matching defs:dev

93 static int vfs_mountroot_wait_if_neccessary(const char *fs, const char *dev);
102 * Mount of the system's /dev.
242 * Already have /dev; this happens during rerooting.
254 mp = vfs_mount_alloc(NULLVP, vfsp, "/dev", td->td_ucred);
280 error = kern_symlinkat(td, "/", AT_FDCWD, "dev", UIO_SYSSPACE);
282 printf("kern_symlink /dev -> / returns %d\n", error);
363 /* Remount devfs under /dev */
364 NDINIT(&nd, LOOKUP, FOLLOW | LOCKLEAF, UIO_SYSSPACE, "/dev", td);
385 printf("mountroot: unable to remount devfs under /dev "
391 /* Unlink the no longer needed /dev/dev -> / symlink */
392 error = kern_unlinkat(td, AT_FDCWD, "/dev/dev",
395 printf("mountroot: unable to unlink /dev/dev "
511 printf(" eg. ufs:/dev/da0s1a\n");
513 printf(" cd9660:/dev/cd0 ro\n");
515 printf("mount -t cd9660 -o ro /dev/cd0 /)\n");
571 /* Open /dev/mdctl so that we can attach/detach. */
572 error = kern_openat(td, AT_FDCWD, "/dev/" MDCTL_NAME, UIO_SYSSPACE,
698 parse_mount_dev_present(const char *dev)
703 NDINIT(&nd, LOOKUP, FOLLOW | LOCKLEAF, UIO_SYSSPACE, dev, curthread);
717 char *dev, *fs, *opts, *tok;
731 dev = tok;
735 tok = strstr(dev, "md#");
744 printf("Trying to mount root from %s:%s [%s]...\n", fs, dev,
755 error = vfs_mountroot_wait_if_neccessary(fs, dev);
766 ma = mount_arg(ma, "from", dev, -1);
778 "retrying for %d more second%s\n", fs, dev, error,
787 fs, dev, error);
885 sbuf_printf(sb, "cd9660:/dev/cd0 ro\n");
887 sbuf_printf(sb, "cd9660:/dev/cd1 ro\n");
982 vfs_mountroot_wait_if_neccessary(const char *fs, const char *dev)
992 dev[0] == '\0' || root_mount_always_wait != 0) {
1005 if (parse_mount_dev_present(dev))
1013 printf("mountroot: waiting for device %s...\n", dev);
1019 } while (timeout > 0 && !parse_mount_dev_present(dev));