diff options
author | Mateusz Guzik <mjg@FreeBSD.org> | 2019-10-06 22:16:55 +0000 |
---|---|---|
committer | Mateusz Guzik <mjg@FreeBSD.org> | 2019-10-06 22:16:55 +0000 |
commit | 559ac49d419058132fa08d206bbf1618df8ff243 (patch) | |
tree | fa64a28a0c966e854709eccd4cc9c394b1fa5037 | |
parent | 818631b63421364f593a02c1cbf91cd1c0ca9f2a (diff) |
Notes
-rw-r--r-- | sys/fs/devfs/devfs_vfsops.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/fs/devfs/devfs_vfsops.c b/sys/fs/devfs/devfs_vfsops.c index c093cfb4c1517..33f967ae85012 100644 --- a/sys/fs/devfs/devfs_vfsops.c +++ b/sys/fs/devfs/devfs_vfsops.c @@ -156,6 +156,7 @@ devfs_mount(struct mount *mp) } VOP_UNLOCK(rvp, 0); + vfs_cache_root_set(mp, rvp); vfs_mountedfrom(mp, "devfs"); @@ -237,7 +238,8 @@ devfs_statfs(struct mount *mp, struct statfs *sbp) static struct vfsops devfs_vfsops = { .vfs_mount = devfs_mount, - .vfs_root = devfs_root, + .vfs_root = vfs_cache_root, + .vfs_cachedroot = devfs_root, .vfs_statfs = devfs_statfs, .vfs_unmount = devfs_unmount, }; |