git: DragonFly_RELEASE_2_4 NFS - Fix BIO size panics

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


commit 91d4f22fdadc39c24db6782857a820bb2a89e4d3
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/91d4f22fdadc39c24db6782857a820bb2a89e4d3


-- 
DragonFly BSD source repository





More information about the Commits mailing list