ports/102897: linux_base-fc-4 - remove() function does not
delete empty directories
Boris Samorodov
bsam at ipt.ru
Tue Sep 5 20:30:34 UTC 2006
The following reply was made to PR ports/102897; it has been noted by GNATS.
From: Boris Samorodov <bsam at ipt.ru>
To: Knut Anders Hatlen <kahatlen at gmail.com>
Cc: Alexander Leidinger <Alexander at Leidinger.net>, bug-followup at 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
More information about the freebsd-emulation
mailing list