From owner-freebsd-fs@FreeBSD.ORG Sun Nov 11 16:16:38 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 08425EA1 for ; Sun, 11 Nov 2012 16:16:38 +0000 (UTC) (envelope-from bryan@shatow.net) Received: from secure.xzibition.com (secure.xzibition.com [173.160.118.92]) by mx1.freebsd.org (Postfix) with ESMTP id 9544C8FC65 for ; Sun, 11 Nov 2012 16:16:34 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; c=nofws; d=shatow.net; h=message-id :date:from:mime-version:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sweb; b=2AdWt2 KW+MP2T6s02uW5rNgoFz8Xybyu8bX4kA7qC5qxI6t+HHUifHie4JgDWC08a2nA+R EenqVWZ0oO0rC4HnjHpcof9BM4TCD1Qqg6tIpgJyqB7CjdA2qojxMkuSESLuFOX6 P3dCxfxaMzENb18Oe0Yzz6kqEgVHA8T9aqADQ= DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=shatow.net; h=message-id :date:from:mime-version:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sweb; bh=k4dlyu97BWgA 4WUTnpDaIl2sDhFvtwijMsb1hunbWnU=; b=NXLQdSEJdubpwkuYuVv9wce7zvYN Aw7epvYy0dr7zwiAXjPhAFgg/PGJAgtnbQ8CspBsy7UW+0lmW91lO01o6GvaJJCP nrY+ok6+Kgt0Y3dQL0VO1YIko6tN9y9Faioa8qdARzo/8ynmmc7hXjpVlWkEQMv7 Eo9Y3bfFO5HFkrs= Received: (qmail 99979 invoked from network); 11 Nov 2012 10:16:27 -0600 Received: from unknown (HELO ?10.10.0.115?) (bryan@shatow.net@10.10.0.115) by sweb.xzibition.com with ESMTPA; 11 Nov 2012 10:16:27 -0600 Message-ID: <509FCF58.60709@shatow.net> Date: Sun, 11 Nov 2012 10:16:24 -0600 From: Bryan Drewery User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 MIME-Version: 1.0 CC: "freebsd-fs@freebsd.org" Subject: Re: ZFS can't delete files when over quota References: <509E79C7.10300@shatow.net> <509EA942.9060801@shatow.net> <67C1C89F-4A91-4595-8EA7-19AF3EC4656F@dragondata.com> In-Reply-To: X-Enigmail-Version: 1.4.5 OpenPGP: id=3C9B0CF9; url=http://www.shatow.net/bryan/bryan.asc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Nov 2012 16:16:38 -0000 On 11/10/2012 11:11 PM, Eitan Adler wrote: > On 10 November 2012 15:36, Chris Rees wrote: > >> These are the reasons I added the -T option, which I realise would >> have been more correct as -t; it's undesirable to have as default >> behaviour. In my patch, errno is tested. > > This only fixes the issue with rm. Others tools which delete files > (find(1) for instance) would be left with the same problem. Ideally > the root cause could fixed, though I imagine this is non-trivial. > Yeah, I agree that just fixing rm(1) to work around a ZFS issue with unlink(2) is not a good plan. There are several easy workarounds, that the rm(1) patch is not really needed. Bryan