git: NFS - Fix BIO size panics

Matthew Dillon dillon at crater.dragonflybsd.org
Fri Oct 2 17:18:00 PDT 2009


commit b672fc169da19f4fc264f567efbc13f1a349146d
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Fri Oct 2 17:09:13 2009 -0700

    NFS - Fix BIO size panics
    
    * NFS calculates the BIO block size and stores it in mnt_stat.f_iosize.
      This field was getting overwritten with default values by STATFS
      being passing &mp->mnt_stat from the kernel.
    
      Conditionalize the field so it no longer gets overwritten, and also
      correct nm_rsize/nm_wsize tests to use the smaller of the two
      specifications for the BIO block size.
    
    * Fixes diskless NFS root mounts, and NFS mounts which use smaller
      blocksizes.
    
    Reported-by: Rumko <rumcic at gmail.com>, and others

Summary of changes:
 sys/vfs/nfs/nfs_vfsops.c |   21 +++++++++++++++++++--
 1 files changed, 19 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b672fc169da19f4fc264f567efbc13f1a349146d


-- 
DragonFly BSD source repository





More information about the Commits mailing list