From owner-freebsd-fs@FreeBSD.ORG Sat Nov 10 16:19:21 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 596C4732; Sat, 10 Nov 2012 16:19:21 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id E89318FC19; Sat, 10 Nov 2012 16:19:20 +0000 (UTC) Received: by mail-vb0-f54.google.com with SMTP id l1so6383245vba.13 for ; Sat, 10 Nov 2012 08:19:20 -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=GZgCvmalDq5uNAuGMPED5JqoE+OOnzCSsszR0DtDTww=; b=QRHr+6br8UT/txHgVWsvrPkv0pJRiCMIScpCpfxQTuCVz5R1zBSHm5C4+Z2I1UVITv ckW6JkgOtxzzoHhMV103mBAtaUZpcH6gZlwXY+5IukUgk3sFVEuvwUZaDASAyxWNT8Gs JjgJnSSF0GtDSBDPK6DShlJVdcWWAk0IB9M5f1TgDVAvbm/8aR4b81ootHrQu/oqnnC2 xdnarUqBqCS/Tt8vVUbe4ycDDhMrHH7ZIc72xtpIpLMLvDBUFkPEkLEH4E4foCCCBp6U 5rXDJgpclZzpfo+REHWXjjyH63gaObT4NFjDjOYtKsBiiOaaGTOjDxnuRZwxOCWhTLCo SmNA== MIME-Version: 1.0 Received: by 10.52.33.197 with SMTP id t5mr6045759vdi.91.1352564359806; Sat, 10 Nov 2012 08:19:19 -0800 (PST) Received: by 10.58.207.114 with HTTP; Sat, 10 Nov 2012 08:19:19 -0800 (PST) In-Reply-To: References: <509E79C7.10300@shatow.net> Date: Sat, 10 Nov 2012 11:19:19 -0500 Message-ID: Subject: Re: ZFS can't delete files when over quota From: Ryan Stone To: Chris Rees 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 16:19:21 -0000 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" >