From muir@idiom.com  Wed Feb  8 00:23:31 1995
Received: from idiom.com (idiom.com [140.174.82.4]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id AAA02663 for <FreeBSD-gnats-submit@freebsd.org>; Wed, 8 Feb 1995 00:23:23 -0800
Received: (from muir@localhost) by idiom.com (8.6.9/8.6.9) id AAA06495; Wed, 8 Feb 1995 00:23:17 -0800
Message-Id: <199502080823.AAA06495@idiom.com>
Date: Wed, 8 Feb 1995 00:23:17 -0800
From: David Muir Sharnoff <muir@idiom.com>
Reply-To: muir@idiom.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: mv returns "Invalid argument" unreasonably
X-Send-Pr-Version: 3.2

>Number:         211
>Category:       kern
>Synopsis:       mv returns "Invalid argument" unreasonably
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs (FreeBSD bugs mailing list)
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb  8 00:30:00 1995
>Closed-Date:    Mon May 15 10:22:29 PDT 1995
>Last-Modified:
>Originator:     David Muir Sharnoff
>Release:        FreeBSD 2.0-RELEASE i386
>Organization:
Idiom Consulting
>Environment:

>Description:

	I was cleaning up a my home directory when I ran into a
	directory that didn't want to be cleaned.

	I have no idea what caused it, but the following 
	seems to be repeatable.   

	I find this more than somewhat strange.

>How-To-Repeat:

	% cd /tmp
	% mkdir foo
	% cd foo
	% mkdir bar
	% mkdir bar/t
	% touch bar/t/y
	% mkdir t
	% touch t/z
	% mv t tt
	% mv tt t
	% mv t bar
	mv: rename t to bar/t: Directory not empty
	% mv t tt
	mv: rename t to tt: Invalid argument
	% ls -l 
	total 2
	drwxr-xr-x  3 muir  bin  512 Feb  
	drwxr-xr-x  3 muir  bin  512 Feb  8 00:15 bar/
	drwxr-xr-x  2 muir  bin  512 Feb  8 00:15 t/

>Fix:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: bde 
State-Changed-When: Mon May 15 10:22:29 PDT 1995 
State-Changed-Why:  
Fixed in revision 1.23 of ufs_vnops.c. 
>Unformatted:



