DragonFly BSD
DragonFly commits List (threaded) for 2009-12
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: devfs - Populate getattr va_size for disks properly


From: Alex Hornung <alexh@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 17 Dec 2009 07:34:46 -0800 (PST)

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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]