Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Feb 2003 11:28:15 -0800 (PST)
From:      "Jin Guojun[DSD]" <jin@adsl-63-198-35-122.dsl.snfc21.pacbell.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   kern/48435: wierd file system behavior
Message-ID:  <200302181928.h1IJSFd4000771@adsl-63-198-35-122.dsl.snfc21.pacbell.net>

next in thread | raw e-mail | index | archive | help

>Number:         48435
>Category:       kern
>Synopsis:       wierd file system behavior
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 18 11:30:19 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Jin Guojun[DSD]
>Release:        FreeBSD 4.7-RELEASE i386
>Organization:
>Environment:
System: FreeBSD adsl-63-198-35-122.dsl.snfc21.pacbell.net 4.7-RELEASE FreeBSD 4.7-RELEASE #1: Sat Oct 26 14:27:08 PDT 2002 jin@adsl.dsl.snfc21.pacbell.net:/usr/src/sys/compile/MinMax i386


	FreeBSD 4.7-RELEASE and 5.0-RELEASE

>Description:
	rm $dir/* then "tar -xf tar-file"
	can remove old directory ($dir) and create a new directory ($dir).
	< in this example, $dir/ == test/ >

	I have not seen this behavior on 4.6.2 or earlier versions and
	any other Unix file systems.

>How-To-Repeat:

[37] FreeBSD-4.7: mkdir test
[38] FreeBSD-4.7: ll -i test
total 4
19232 drwxr-xr-x  2 jin   wheel   512 Feb 18 11:12 ./
18964 drwxrwxrwt  6 root  wheel  1024 Feb 18 11:12 ../
[39] FreeBSD-4.7: tar -xvf x
test/
test/tp2u
[40] FreeBSD-4.7: !l
ll -i test
total 6
19232 drwxr-xr-x  2 jin   wheel   512 Feb 18 11:07 ./
18964 drwxrwxrwt  6 root  wheel  1024 Feb 18 11:13 ../
19233 -rw-r--r--  1 jin   wheel    74 Feb 18 11:07 tp2u

# so far so good, the inode is the same (19232)

[41] FreeBSD-4.7: rm test/*
remove test/tp2u? y
[42] FreeBSD-4.7: ll -i test
total 4
19232 drwxr-xr-x  2 jin   wheel   512 Feb 18 11:13 ./
18964 drwxrwxrwt  6 root  wheel  1024 Feb 18 11:12 ../
# inode is still the same (19232)

[43] FreeBSD-4.7: !tar
tar -xvf x
test/
test/tp2u
[44] FreeBSD-4.7: ll -i test
total 6
19223 drwxr-xr-x  2 jin   wheel   512 Feb 18 11:07 ./
18964 drwxrwxrwt  6 root  wheel  1024 Feb 18 11:13 ../
19231 -rw-r--r--  1 jin   wheel    74 Feb 18 11:07 tp2u

# now test directory inode changed. Why?


>Fix:

	


>Release-Note:
>Audit-Trail:
>Unformatted:

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




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