cvs commit: src/sys/gnu/fs/xfs/FreeBSD xfs_mountops.c xfs_vnode.c src/sys/kern vfs_subr.c

From: Attilio Rao <>
Date: Mon, 21 Jul 2008 23:01:09 +0000 (UTC)
attilio     2008-07-21 23:01:09 UTC

  FreeBSD src repository

  Modified files:
    sys/gnu/fs/xfs/FreeBSD xfs_mountops.c xfs_vnode.c 
    sys/kern             vfs_subr.c 
  SVN rev 180682 on 2008-07-21 23:01:09Z by attilio
  - Disallow XFS mounting in write mode.  The write support never worked really
    and there is no need to maintain it.
  - Fix vn_get() in order to let it call vget(9) with a valid locking
    request.  vget(9) returns the vnode locked in order to prevent recycling,
    but in this case internal XFS locks alredy prevent it from happening, so
    it is safe to drop the vnode lock before to return by vn_get().
  - Add a VNASSERT() in vget(9) in order to catch malformed locking requests.
  Discussed with: kan, kib
  Tested by:      Lothar Braun <lothar at lobraun dot de>
  Revision  Changes    Path
  1.12      +3 -1      src/sys/gnu/fs/xfs/FreeBSD/xfs_mountops.c
  1.5       +10 -5     src/sys/gnu/fs/xfs/FreeBSD/xfs_vnode.c
  1.733     +2 -0      src/sys/kern/vfs_subr.c
Received on Mon Jul 21 2008 - 23:02:27 UTC