From owner-freebsd-questions Tue Sep 1 08:45:14 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA28427 for freebsd-questions-outgoing; Tue, 1 Sep 1998 08:45:14 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from clio.rice.edu (clio.rice.edu [128.42.105.3]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id IAA28422 for ; Tue, 1 Sep 1998 08:45:13 -0700 (PDT) (envelope-from keyser@clio.rice.edu) Received: by clio.rice.edu (AIX 3.2/UCB 5.64/4.03) id AA12093; Tue, 1 Sep 1998 10:44:41 -0500 Date: Tue, 1 Sep 1998 10:44:41 -0500 From: keyser@clio.rice.edu (Kevin Keyser) Message-Id: <9809011544.AA12093@clio.rice.edu> To: anders@sanyusan.se Subject: Re: rm dir, not empty? Cc: questions@FreeBSD.ORG Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I am trying to remove a dir but rm claims it is not empty: > > ls gives: > > [root@enterprise /usr/obj/usr/src/gnu/lib/libgmp]# ls -la > total 2 > drwxr-xr-x 1 root bin 1024 31 Aug 09:06 ./ ^^^ This is odd. libgmp and libgmp/. should both be referencing the same inode, giving a link count of 2. It would be interesting to see the output of "ls -ldi libgmp libgmp/." run from /usr/obj/usr/src/gnu/lib Have you run fsck on this fs since your kernel panic? > Anders Andersson > > --------------------------------------------------------- > Anders Andersson anders@sanyusan.se > > Sanyusan International AB http://www.sanyusan.se/ > Vdstgvtagatan 11 Tel: +46-(0)31-168730 > 411 39 Gothenburg Fax: +46-(0)31-209361 > Sweden > --------------------------------------------------------- Kevin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message