git: kernel - Add overlapping buffer test to the buffer cache

看板DFBSD_commit作者時間15年前 (2010/08/16 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 7608650f2d0c2fb8e1dea0d0d868da353d31ea86 Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Sun Aug 15 08:20:37 2010 -0700 kernel - Add overlapping buffer test to the buffer cache * Add a test for overlapping buffer in bgetvp(). * Add a sysctl vfs.check_buf_overlap which defaults to enabling the check invasively. Overlapping buffer cache buffers can be deadly. 0 - disabled 1 - checked and reported 2 - checked and panic (invasive) (default) Summary of changes: sys/kern/vfs_bio.c | 2 +- sys/kern/vfs_subr.c | 39 ++++++++++++++++++++++++++++++++++++++- sys/sys/buf.h | 2 +- 3 files changed, 40 insertions(+), 3 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7608650f2d0c2fb8e1dea0d0d868da353d31ea86 -- DragonFly BSD source repository
文章代碼(AID): #1CQ2jdnU (DFBSD_commit)