Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F159364412
D57533.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
709 B
Referenced Files
None
Subscribers
None
D57533.id.diff
View Options
diff --git a/sys/kern/vfs_mountroot.c b/sys/kern/vfs_mountroot.c
--- a/sys/kern/vfs_mountroot.c
+++ b/sys/kern/vfs_mountroot.c
@@ -1061,6 +1061,7 @@
struct mount *mp;
struct sbuf *sb;
struct thread *td;
+ inittodr_cookie_t cookie;
time_t timebase;
int error;
@@ -1074,6 +1075,7 @@
vfs_mountroot_conf0(sb);
sbuf_finish(sb);
+ inittodr_early(&cookie);
error = vfs_mountroot_devfs(td, &mp);
while (!error) {
error = vfs_mountroot_parse(sb, mp);
@@ -1102,7 +1104,7 @@
mp = TAILQ_NEXT(mp, mnt_list);
}
mtx_unlock(&mountlist_mtx);
- inittodr(timebase);
+ inittodr_late(cookie, timebase);
/* Keep prison0's root in sync with the global rootvnode. */
mtx_lock(&prison0.pr_mtx);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jun 14, 8:04 AM (48 m, 37 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33884434
Default Alt Text
D57533.id.diff (709 B)
Attached To
Mode
D57533: vfs: try to set time from the RTC prior to mountroot
Attached
Detach File
Event Timeline
Log In to Comment