Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Jul 2009 16:44:26 +0000 (UTC)
From:      Rick Macklem <rmacklem@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/fs/nfsclient nfs_clvfsops.c
Message-ID:  <200907191644.n6JGij3r071135@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
rmacklem    2009-07-19 16:44:26 UTC

  FreeBSD src repository

  Modified files:
    sys/fs/nfsclient     nfs_clvfsops.c 
  Log:
  SVN rev 195762 on 2009-07-19 16:44:26Z by rmacklem
  
  Fix two bugs in the experimental nfs client:
  - When the root vnode was acquired during mounting, mnt_stat.f_iosize was
    still set to 0, so getnewvnode() would set bo_bsize == 0. This would
    confuse getblk(), so that it always returned the first block causing
    the problem when the root directory of the mount point was greater
    than one block in size. It was fixed by setting mnt_stat.f_iosize to
    NFS_DIRBLKSIZ before calling ncl_nget() to acquire the root vnode.
  - NFSMNT_INT was being set temporarily while the initial connect to a
    server was being done. This erroneously configured the krpc for
    interruptible RPCs, which caused problems because signals weren't
    being masked off as they would have been for interruptible mounts.
    This code was deleted to fix the problem. Since mount_nfs does an
    NFS null RPC before the mount system call, connections to the server
    should work ok.
  
  Tested by:      swell dot k at gmail dot com
  Approved by:    re (kensmith), kib (mentor)
  
  Revision  Changes    Path
  1.8       +7 -13     src/sys/fs/nfsclient/nfs_clvfsops.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907191644.n6JGij3r071135>