git: devfs - Populate getattr va_size for disks properly
Alex Hornung
alexh at crater.dragonflybsd.org
Thu Dec 17 07:36:47 PST 2009
commit 2d0767552b6288b28a2ec45d633cfd93fa58ca64
Author: Alex Hornung <ahornung at 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
More information about the Commits
mailing list