From owner-freebsd-bugs@FreeBSD.ORG Mon Jul 14 15:50:11 2003 Return-Path: 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 1F6B637B401 for ; Mon, 14 Jul 2003 15:50:11 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id BCE6143F3F for ; Mon, 14 Jul 2003 15:50:10 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h6EMoAUp015125 for ; Mon, 14 Jul 2003 15:50:10 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h6EMoAfM015124; Mon, 14 Jul 2003 15:50:10 -0700 (PDT) Date: Mon, 14 Jul 2003 15:50:10 -0700 (PDT) Message-Id: <200307142250.h6EMoAfM015124@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Andy Farkas Subject: Re: kern/48435: wierd file system behavior X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Andy Farkas List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jul 2003 22:50:11 -0000 The following reply was made to PR kern/48435; it has been noted by GNATS. From: Andy Farkas To: "Jin Guojun [NCS]" Cc: Kris Kennaway , Subject: Re: kern/48435: wierd file system behavior Date: Tue, 15 Jul 2003 08:43:57 +1000 (EST) I don't think this is a bug. Its what tar does. A truss of tar when the directory exists, but has no files: mkdir(0x809b070,0x1ed) ERR#17 'File exists' unlink(0x809b070) ERR#1 'Operation not permitted' rmdir(0x809b070) = 0 (0x0) mkdir(0x809b070,0x1ed) = 0 (0x0) But when a file exists in the directory: mkdir(0x809b070,0x1ed) ERR#17 'File exists' unlink(0x809b070) ERR#1 'Operation not permitted' rmdir(0x809b070) ERR#66 'Directory not empty' So it seems tar is removing then creating the directory if it is empty. -- :{ andyf@speednet.com.au Andy Farkas System Administrator Speednet Communications http://www.speednet.com.au/