From owner-freebsd-fs@FreeBSD.ORG Sat Nov 10 19:48:11 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 2D8B250A; Sat, 10 Nov 2012 19:48:11 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 54FBE8FC08; Sat, 10 Nov 2012 19:48:10 +0000 (UTC) Received: by mail-wg0-f50.google.com with SMTP id 16so3339075wgi.31 for ; Sat, 10 Nov 2012 11:48:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=coIQdeRaDMsnJWm/8CZYRGvD4hszI8lAtMNPoAy1rAM=; b=pXhEIY/Efv4KpR+SPczloy9Vx/26x7gmbBwMgWdSuJTpRRZ8qyvRlg134Le+Irg1tw 6+37r5oav74D+/BC2K8Xqh1OzA1HHztHiI9nqx4YBWja+h1vBurKVcK0zSTkiOcH9FlG FJKg4tMVKlnQfNexW59UGiYVeFbGJRkG347I+8S7M1KYv5TOeD9zu9QJZr8vNhgyI3zJ ETZyA7DhpNTUxxaQsT9Y946Z1Vw9eZJzvdWkDsoXMoMufFzhrBxap6UYBcSSgYoi9TBU fAEejqKQXKNQ2Upzr6JvTwpkUwH4YjdqKS9M+WGtNXwYTFqOdRenGZB5hc7tcXs44eic hlBQ== Received: by 10.180.106.2 with SMTP id gq2mr8297120wib.18.1352576889334; Sat, 10 Nov 2012 11:48:09 -0800 (PST) Received: from dft-labs.eu (n1x0n-1-pt.tunnel.tserv5.lon1.ipv6.he.net. [2001:470:1f08:1f7::2]) by mx.google.com with ESMTPS id gk9sm7664886wib.4.2012.11.10.11.48.08 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 10 Nov 2012 11:48:08 -0800 (PST) Date: Sat, 10 Nov 2012 20:48:00 +0100 From: Mateusz Guzik To: Bryan Drewery Subject: Re: ZFS can't delete files when over quota Message-ID: <20121110194759.GA19081@dft-labs.eu> References: <509E79C7.10300@shatow.net> <509EA942.9060801@shatow.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <509EA942.9060801@shatow.net> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: "freebsd-fs@freebsd.org" 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: Sat, 10 Nov 2012 19:48:11 -0000 On Sat, Nov 10, 2012 at 01:21:38PM -0600, Bryan Drewery wrote: > On 11/10/2012 12:55 PM, Chris Rees wrote: > > Bryan, > > > > Please try the patch at [1]; if it works I'll document it. > > > > Chris > > > > [1] http://www.bayofrum.net/~crees/patches/bdrewery.diff > > > > Hmm, I'm not a fan of -T. I think it should just work out-of-the-box here. > > Something like: > > http://people.freebsd.org/~bdrewery/rm-quota.txt > I think this approach is incorrect. If you cannot rm $file due to EDQUOT, but truncate $file && rm $file works (and both patches try to do this), then I think this is a filesystem bug. -- Mateusz Guzik