Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Sep 2006 15:17:34 +0200
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        Marcin Cieslak <saper@SYSTEM.PL>
Cc:        emulation@freebsd.org
Subject:   Re: remove() problem fixed
Message-ID:  <20060910151734.0d56eb13@Magellan.Leidinger.net>
In-Reply-To: <45040B68.8010302@SYSTEM.PL>
References:  <20060910123402.000e1358@Magellan.Leidinger.net> <4503F8A2.1030104@SYSTEM.PL> <20060910144812.6933ffd1@Magellan.Leidinger.net> <45040B68.8010302@SYSTEM.PL>

next in thread | previous in thread | raw e-mail | index | archive | help
Quoting Marcin Cieslak <saper@SYSTEM.PL> (Sun, 10 Sep 2006 14:56:08 +0200):

> The fix for remove() was ... trivial. We need to introduce non POSIX
> compliant behaviour of unlink(2). No idea why it worked, probably
> libc checked for directory instead of the EISDIR error value.

Yeah! This was fast... I did send the mail, got hit by a spontaneous
reboot (panic while being in X, now I have to find out which test is
responsible for this and why) and a fix is already there. Nice!

> Sorry for versioning crap, I am using my normal buildworld environment
> stuff. Is there anyway I can make easily make diffs to p4 repo?

No problem, I deal with this. As long as you don't have an
p4-account, you can't.

> If not, I will have to go head and install whole CVS repository
> to finally be able to "cvs diff"

Anoncvs? You just have to check out the file you want to change. But a
local CVS repository is nice to have (src alone is ~1.5G), so if you re
willing to of this way, fine.

> Now unlink() gets EISDIR instead of EPERM and remove() is able
> to recover.

I will give it a try (after the bgfsck finishes).

Thanks,
Alexander.

-- 
Leela: You buy one pound of underwear and you're on their list forever.
http://www.Leidinger.net  Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org     netchild @ FreeBSD.org  : PGP ID = 72077137



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060910151734.0d56eb13>