Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Feb 1999 21:34:16 -0800 (PST)
From:      Warner Losh <imp@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/ufs/ufs ufs_vnops.c
Message-ID:  <199902260534.VAA69053@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
imp         1999/02/25 21:34:16 PST

  Modified files:
    sys/ufs/ufs          ufs_vnops.c 
  Log:
  Fix last commit based on feedback from Guido, Bruce and Terry.
  
  Specifically, the test was in the wrong place, lacked a cast, didn't
  unlock the node, and exited to bad rather than abortit.  Now we don't
  allow renaming of a file with LINK_MAX references.  Move the test to
  earlier in the code as it is closer to where ip is obtained, as that
  is the style of the rest of the function.
  
  Didn't fix the problems bruce pointed out in the rename man page to
  include EMLINK, nor address his complaints about how the whole idea of
  incrementing the link count during a rename is potentially asking for
  trouble.
  
  Also didn't try to correct potential problem Terry pointed out with
  decrements not being similarly protected against underflow.
  
  Revision  Changes    Path
  1.110     +6 -5      src/sys/ufs/ufs/ufs_vnops.c


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




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