git: NULL VFS: store PFS mount points for later use

看板DFBSD_commit作者時間14年前 (2011/12/28 02:05), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit f423d507245621c25de023241e139e13540633ce Author: Francois Tigeot <ftigeot@wolfpond.org> Date: Wed Aug 24 22:00:28 2011 +0200 NULL VFS: store PFS mount points for later use * This is a hack to obtain the pfs mount point in vop_write() * PFSes use nullfs mounts. Unfortunately, the nullfs implementation does not respect the traditional vfs/vnode layers and its vnodes may belong to many mount point at once. * What's worse, the mount point passed to VFS functions is the one of the underlying non-PFS filesystem. * We use the namecache layer to put the upper mount point of the PFS in a new vnode field to work around this limitation. Summary of changes: sys/kern/vfs_cache.c | 4 ++++ sys/kern/vfs_vopops.c | 9 +++++++-- sys/sys/vnode.h | 1 + 3 files changed, 12 insertions(+), 2 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f423d507245621c25de023241e139e13540633ce -- DragonFly BSD source repository
文章代碼(AID): #1E-WZRtj (DFBSD_commit)