From owner-freebsd-fs@FreeBSD.ORG Sat Nov 10 20:03:03 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 B4FBD632 for ; Sat, 10 Nov 2012 20:03:03 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 325198FC08 for ; Sat, 10 Nov 2012 20:03:02 +0000 (UTC) Received: by mail-bk0-f54.google.com with SMTP id jm19so982458bkc.13 for ; Sat, 10 Nov 2012 12:03:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ad6QPb/Olj+gdhD/GCLKNlXGe6zl8FWn4/0BAw2ttJ0=; b=Jwt5AiOWIZH1rQZcOha+3H2cWJoVoXmHdf4gY1ey8Dvn0mQ/oEYkRm7nHLD/8j7FwM 5M5NngERaQG1ximf5fL/j5JoIS2oYSbv2lpVdmp5BXmydmkfrECMl8r84K9PFItCzPdA UBBS1qDMPoPd+wXySCNrB34bz8Opr0GfTXEzCV2Face38+SFaZyNLAOLguZ4vdqJe9qn td4eYEITfYjq4YVq3RBBlTlB8ZHJXeZpn3RUV7CG+el6bJBxbrLS4WNvYy1QY15IEZN0 QXs4iomP6a/1WKj2nIucCWymOM8peeNgJY3PlwqJrvMmicp0zf0FiagikF10yrkGFfE3 Kekg== MIME-Version: 1.0 Received: by 10.204.11.208 with SMTP id u16mr1069561bku.81.1352577781635; Sat, 10 Nov 2012 12:03:01 -0800 (PST) Received: by 10.204.50.197 with HTTP; Sat, 10 Nov 2012 12:03:01 -0800 (PST) Received: by 10.204.50.197 with HTTP; Sat, 10 Nov 2012 12:03:01 -0800 (PST) In-Reply-To: <20121110194759.GA19081@dft-labs.eu> References: <509E79C7.10300@shatow.net> <509EA942.9060801@shatow.net> <20121110194759.GA19081@dft-labs.eu> Date: Sat, 10 Nov 2012 20:03:01 +0000 Message-ID: Subject: Re: ZFS can't delete files when over quota From: Chris Rees To: Mateusz Guzik Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-fs@freebsd.org, Bryan Drewery 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 20:03:03 -0000 On 10 Nov 2012 19:48, "Mateusz Guzik" wrote: > > 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. Quite right, but this has been a known issue in ZFS for a while, without a forthcoming fix. I'll do some grovelling in the zfs code tomorrow, wish me luck-- I don't expect to be productive. Chris