From owner-freebsd-emulation@FreeBSD.ORG Tue Sep 5 20:30:34 2006 Return-Path: X-Original-To: freebsd-emulation@hub.freebsd.org Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3EC8C16A4DD for ; Tue, 5 Sep 2006 20:30:34 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B02943D5A for ; Tue, 5 Sep 2006 20:30:26 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k85KUPpM096473 for ; Tue, 5 Sep 2006 20:30:25 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k85KUPiS096472; Tue, 5 Sep 2006 20:30:25 GMT (envelope-from gnats) Date: Tue, 5 Sep 2006 20:30:25 GMT Message-Id: <200609052030.k85KUPiS096472@freefall.freebsd.org> To: freebsd-emulation@FreeBSD.org From: Boris Samorodov Cc: Subject: Re: ports/102897: linux_base-fc-4 - remove() function does not delete empty directories X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Boris Samorodov List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Sep 2006 20:30:34 -0000 The following reply was made to PR ports/102897; it has been noted by GNATS. From: Boris Samorodov To: Knut Anders Hatlen Cc: Alexander Leidinger , bug-followup@freebsd.org Subject: Re: ports/102897: linux_base-fc-4 - remove() function does not delete empty directories Date: Wed, 06 Sep 2006 00:26:22 +0400 On Tue, 05 Sep 2006 21:42:21 +0200 Knut Anders Hatlen wrote: > The directory is not removed regardless of where it is located. Using > full path doesn't help either. Output from ktrace can be found at > http://people.apache.org/~kahatlen/logs/ktrace.out. Here is the end of kdump: ----- 1107 a.out CALL #91(0x28064000,0x3c62) 1107 a.out RET #91 0 1107 a.out CALL unlink(0x80483e0) 1107 a.out NAMI "emptydir" 1107 a.out RET unlink RESTART 1107 a.out CALL dup(0x2) 1107 a.out RET dup 3 1107 a.out CALL semget(0x3,0x3,0) 1107 a.out RET semget 2 1107 a.out CALL ktrace(0) 1107 a.out RET ktrace 134520832/0x804a000 1107 a.out CALL ktrace(0x806b000) 1107 a.out RET ktrace 134656000/0x806b000 1107 a.out CALL mmap(0x3,0xbfbfe1b0,0x28182ff4) 1107 a.out RET mmap 0 1107 a.out CALL ioctl(0x3,0x5401 ,0xbfbfe124) 1107 a.out RET ioctl 0 1107 a.out CALL dup2(0xbfbfe198) 1107 a.out RET dup2 671498240/0x28064000 1107 a.out CALL adjtime(0x3,0,0,0xbfbfe1f4,0x1) 1107 a.out RET adjtime 0 1107 a.out CALL write(0x3,0x28064000,0x1f) 1107 a.out GIO fd 3 wrote 31 bytes "error: Operation not permitted " 1107 a.out RET write 31/0x1f 1107 a.out CALL close(0x3) 1107 a.out RET close 0 1107 a.out CALL #91(0x28064000,0x1000) 1107 a.out RET #91 0 1107 a.out CALL openbsd_poll(0) ----- > I found a real FC4 system (uname -a says: Linux atum01 > 2.6.16-1.2096_FC4 #1 Wed Apr 19 15:27:46 EDT 2006 i686 i686 i386 > GNU/Linux) and ran the test there with no problems. Seems that lunixulator should be patched. WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru, Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org, The Power To Serve