From owner-freebsd-bugs Tue Feb 18 11:30:30 2003 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B556337B401 for ; Tue, 18 Feb 2003 11:30:27 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A67943FA3 for ; Tue, 18 Feb 2003 11:30:20 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h1IJUKNS052955 for ; Tue, 18 Feb 2003 11:30:20 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h1IJUJER052954; Tue, 18 Feb 2003 11:30:19 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 98D2937B401 for ; Tue, 18 Feb 2003 11:27:30 -0800 (PST) Received: from adsl-63-198-35-122.dsl.snfc21.pacbell.net (adsl-63-198-35-122.dsl.snfc21.pacbell.net [63.198.35.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id C0AF043FB1 for ; Tue, 18 Feb 2003 11:27:28 -0800 (PST) (envelope-from jin@adsl-63-198-35-122.dsl.snfc21.pacbell.net) Received: from adsl-63-198-35-122.dsl.snfc21.pacbell.net (localhost.pacbell.net [127.0.0.1]) by adsl-63-198-35-122.dsl.snfc21.pacbell.net (8.12.6/8.12.6) with ESMTP id h1IJSHE2000772 for ; Tue, 18 Feb 2003 11:28:18 -0800 (PST) (envelope-from jin@adsl-63-198-35-122.dsl.snfc21.pacbell.net) Received: (from jin@localhost) by adsl-63-198-35-122.dsl.snfc21.pacbell.net (8.12.6/8.12.6/Submit) id h1IJSFd4000771; Tue, 18 Feb 2003 11:28:15 -0800 (PST) Message-Id: <200302181928.h1IJSFd4000771@adsl-63-198-35-122.dsl.snfc21.pacbell.net> Date: Tue, 18 Feb 2003 11:28:15 -0800 (PST) From: "Jin Guojun[DSD]" Reply-To: j_guojun@lbl.gov To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/48435: wierd file system behavior Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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