From owner-freebsd-fs@FreeBSD.ORG Sat Nov 10 18:55:32 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 7C2C882D for ; Sat, 10 Nov 2012 18:55:32 +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 04B228FC0C for ; Sat, 10 Nov 2012 18:55:31 +0000 (UTC) Received: by mail-bk0-f54.google.com with SMTP id jm19so973305bkc.13 for ; Sat, 10 Nov 2012 10:55:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=t/GlKsbGTwKqGIOymnFsFsDF8YdbIqPlxZo5EiMSGfA=; b=KOYBUtCf3hDYcRX6hG3H0oQjBNCH05FkPDwfbRufvZ/2B9ZIaZX4FeGlxabKYm6HTg TnWajF5OvNBN8J35J/k11HaD33UE+Fm+fD+nrZNsZBvh5cFXW+XmK0TcI8CfF+jS2TZq p27K4sKirAlXXP1zyxL6f2bpZCDY5EKZMUfQQsuYRpGyT8X84cthdAMrUxjMjrHIgvaa 5Zi+0DbtqOkGrK8EHjad63eQH3je+CbaiSh3xz5sP6agXO7zfTAfffCBJYeXRASTq7T7 +pBPGZKaV7pyasIaokx/HM4Qqj3gczuNIltJmA2S7IGIWkXZ3oLxpk0kEVcR2ftIqIMs hVfw== Received: by 10.205.137.7 with SMTP id im7mr5092292bkc.25.1352573730764; Sat, 10 Nov 2012 10:55:30 -0800 (PST) MIME-Version: 1.0 Sender: utisoft@gmail.com Received: by 10.204.50.197 with HTTP; Sat, 10 Nov 2012 10:55:00 -0800 (PST) In-Reply-To: References: <509E79C7.10300@shatow.net> From: Chris Rees Date: Sat, 10 Nov 2012 18:55:00 +0000 X-Google-Sender-Auth: iBpyRQCaKMp2dA2qm1QeZUtyuVk Message-ID: Subject: Re: ZFS can't delete files when over quota To: Ryan Stone Content-Type: text/plain; charset=ISO-8859-1 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 18:55:32 -0000 Bryan, Please try the patch at [1]; if it works I'll document it. Chris [1] http://www.bayofrum.net/~crees/patches/bdrewery.diff On 10 November 2012 16:19, Ryan Stone wrote: > Perhaps rm should truncate the file itself before calling unlink? Or do > that if unlink returns EDQUOT? > > > On Sat, Nov 10, 2012 at 11:10 AM, Chris Rees wrote: >> >> On 10 November 2012 15:59, Bryan Drewery wrote: >> > Is this known? >> > >> > # pwd >> > /tank/distfiles/freebsd >> > # rm -f ./KDE/qt-everywhere-opensource-src-4.7.4.tar.gz >> > rm: ./KDE/qt-everywhere-opensource-src-4.7.4.tar.gz: Disc quota exceeded >> > >> > # zfs list -r tank/distfiles >> > NAME USED AVAIL REFER MOUNTPOINT >> > tank/distfiles 10.0G 0 25K /tank/distfiles >> > tank/distfiles/freebsd 10.0G 0 10.0G /tank/distfiles/freebsd >> > tank/distfiles/gentoo 80K 0 80K /tank/distfiles/gentoo >> > >> > # zfs list -rt snapshot tank/distfiles >> > no datasets available >> > >> > # zfs get -s local all tank/distfiles >> > NAME PROPERTY VALUE >> > SOURCE >> > tank/distfiles quota 10G >> > local >> > tank/distfiles sharenfs -maproot=root -network >> > 10.10.0.0/16 local >> > tank/distfiles compression off >> > local >> > tank/distfiles primarycache metadata >> > local >> > tank/distfiles secondarycache metadata >> > local >> > tank/distfiles com.sun:auto-snapshot false >> > local >> >> >> Yes. You can truncate a big file if you find it using dd count=1 then >> delete it as a workaround. >> >> Chris >> _______________________________________________ >> freebsd-fs@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-fs >> To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" > >