Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/vfs_mountroot.c
Show First 20 Lines • Show All 383 Lines • ▼ Show 20 Lines | if (error) | ||||
printf("mountroot: unable to remount devfs under /dev " | printf("mountroot: unable to remount devfs under /dev " | ||||
"(error %d)\n", error); | "(error %d)\n", error); | ||||
NDFREE(&nd, NDF_ONLY_PNBUF); | NDFREE(&nd, NDF_ONLY_PNBUF); | ||||
if (mporoot == mpdevfs) { | if (mporoot == mpdevfs) { | ||||
vfs_unbusy(mpdevfs); | vfs_unbusy(mpdevfs); | ||||
/* Unlink the no longer needed /dev/dev -> / symlink */ | /* Unlink the no longer needed /dev/dev -> / symlink */ | ||||
error = kern_unlinkat(td, AT_FDCWD, "/dev/dev", | error = kern_unlinkat(td, AT_FDCWD, "/dev/dev", | ||||
UIO_SYSSPACE, 0); | UIO_SYSSPACE, 0, 0); | ||||
if (error) | if (error) | ||||
printf("mountroot: unable to unlink /dev/dev " | printf("mountroot: unable to unlink /dev/dev " | ||||
"(error %d)\n", error); | "(error %d)\n", error); | ||||
} | } | ||||
} | } | ||||
/* | /* | ||||
* Configuration parser. | * Configuration parser. | ||||
▲ Show 20 Lines • Show All 731 Lines • Show Last 20 Lines |