Subject: Re: "sillyrename dir"?
To: None <laine@MorningStar.Com>
From: Frank van der Linden <frank@fwi.uva.nl>
List: current-users
Date: 01/27/1997 10:55:19
Quoting Laine Stump,

> I just got the following panic while running a multitude of doscmd
> sessions compiling with MSC 5.1 (possibly non-related):

> Jan 27 00:14:45 shad savecore: reboot after panic: nfs: sillyrename dir

> This was on an NFSv3 hardmounted filesystem. Is this problem known and
> being worked on? (my last reported problem apparently is)

To avoid an attempt at sillyrenaming a directory, you can apply the
patch below (from FreeBSD). It simply makes sure in nfs_rename()
that no attempt is made to sillyrename a VDIR vnode. I need to see
if there's a better way for this, something tells me that there must
be but I haven't looked in to it yet.

- Frank

*** nfs_vnops.c.old	Mon Dec  9 11:36:12 1996
--- nfs_vnops.c	Mon Jan 27 10:36:04 1997
***************
*** 1537,1543 ****
  	 * rename of the new file over it.
  	 */
  	if (tvp && tvp->v_usecount > 1 && !VTONFS(tvp)->n_sillyrename &&
! 		!nfs_sillyrename(tdvp, tvp, tcnp)) {
  		vrele(tvp);
  		tvp = NULL;
  	}
--- 1537,1543 ----
  	 * rename of the new file over it.
  	 */
  	if (tvp && tvp->v_usecount > 1 && !VTONFS(tvp)->n_sillyrename &&
! 		tvp->v_type != VDIR && !nfs_sillyrename(tdvp, tvp, tcnp)) {
  		vrele(tvp);
  		tvp = NULL;
  	}