git: devfs - Populate getattr va_size for disks properly

看板DFBSD_commit作者時間16年前 (2009/12/18 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 2d0767552b6288b28a2ec45d633cfd93fa58ca64 Author: Alex Hornung <ahornung@gmail.com> Date: Thu Dec 17 15:29:15 2009 +0000 devfs - Populate getattr va_size for disks properly * As getattr() va_size is used for lseek SEEK_END, we need to set va_size for disk devices to the underlying device's media size. * Beware that *stat() will not be affected, and st_size will remain the size of the devfs_node structure, as it has been so far. Dragonfly-bug: http://bugs.dragonflybsd.org/issue1632 Reported-by: Steve O'Hara-Smith Summary of changes: sys/vfs/devfs/devfs_vnops.c | 23 +++++++++++++++++++++-- 1 files changed, 21 insertions(+), 2 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/2d0767552b6288b28a2ec45d633cfd93fa58ca64 -- DragonFly BSD source repository
文章代碼(AID): #1BAd7p14 (DFBSD_commit)