From owner-freebsd-fs@FreeBSD.ORG Sat Apr 12 01:30:54 2014 Return-Path: Delivered-To: freebsd-fs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 61D50538 for ; Sat, 12 Apr 2014 01:30:54 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2B1521612 for ; Sat, 12 Apr 2014 01:30:54 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s3C1UscI010704 for ; Sat, 12 Apr 2014 01:30:54 GMT (envelope-from bdrewery@freefall.freebsd.org) Received: (from bdrewery@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s3C1UrCr010701 for freebsd-fs@FreeBSD.org; Sat, 12 Apr 2014 01:30:53 GMT (envelope-from bdrewery) Received: (qmail 17112 invoked from network); 11 Apr 2014 20:30:52 -0500 Received: from unknown (HELO ?10.10.0.24?) (freebsd@shatow.net@10.10.0.24) by sweb.xzibition.com with ESMTPA; 11 Apr 2014 20:30:52 -0500 Message-ID: <53489745.4080708@FreeBSD.org> Date: Fri, 11 Apr 2014 20:30:45 -0500 From: Bryan Drewery Organization: FreeBSD User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Konstantin Belousov Subject: Re: Poudriere: rm -rf: Directory not empty References: <20140403173044.GY21331@kib.kiev.ua> In-Reply-To: <20140403173044.GY21331@kib.kiev.ua> X-Enigmail-Version: 1.6 OpenPGP: id=6E4697CF; url=http://www.shatow.net/bryan/bryan2.asc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wsG8224PseElff0wt3dNe89joGiGV6JxC" Cc: freebsd-fs@FreeBSD.org X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Apr 2014 01:30:54 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --wsG8224PseElff0wt3dNe89joGiGV6JxC Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 4/3/2014 12:30 PM, Konstantin Belousov wrote: > On Thu, Apr 03, 2014 at 09:35:27AM -0500, Bryan Drewery wrote: >> Hi, >> >> While using Poudriere to build packages on segregated tmpfs jails >> we sometimes get the following errors: >>[snip] >> In the other cases it's not clear if looping on rm -rf would work or >> if it would spin forever. We have not tried it since it's so difficult= >> to reproduce. >> >=20 > When the situation occured and you notes it, do you still have an acces= s > to the tmpfs directory which failed rm -rf ? If yes, try to do ls -la > there, and ktrace the "rm -rf". No. Once it realizes it can't do any work it cleans up and umounts the tmpfs. What I will do is add some debugging into poudriere so if it hits the issue it will try to analyze it a bit and gather some more data. Hopefully the user running it will report it back to us. >=20 > Another approach is to patch tmpfs_rmdir() in tmpfs_vnops.c and dump so= me > information when ENOTEMPTY error is returned; e.g. you could print the > directory content and tn_size. >=20 If I can find a way to reliably reproduce the issue I will do that. --=20 Regards, Bryan Drewery --wsG8224PseElff0wt3dNe89joGiGV6JxC Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJTSJdFAAoJEDXXcbtuRpfPj8oIAMP8iOGOuC/yV91opBwl66Ul 8rJGwdhBExUcAzZKNRqsW3rnSbsnILGHUNwlt32jEMWhoIuDARrwbbkEnehbiTeo ggA0CSJajhYm2nFkah1/6MYCndxcnOWXrGWk6vvSJM4NSaGt2pY/Np7c5A+r/oPz 2xgvk4SI196M5G6cYhroEQfAM3JQoinncBDtqXw7F9hbF/byrLd3Rd1RN3AD2MUB eUU+wT0RfMx/hoY6pdHXj853KaNZBEkeUT3GOntcxs8qyl4lnrh1mJworBCPEdk2 An9YklnCTzfLWOVt1fDHrg+IWhLnv2NNpFNCQuB/CDEJAIC/FzQEBmWPo/dTvWo= =4MZe -----END PGP SIGNATURE----- --wsG8224PseElff0wt3dNe89joGiGV6JxC--