Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Nov 2012 18:55:00 +0000
From:      Chris Rees <crees@FreeBSD.org>
To:        Ryan Stone <rysto32@gmail.com>
Cc:        "freebsd-fs@freebsd.org" <freebsd-fs@freebsd.org>, Bryan Drewery <bryan@shatow.net>
Subject:   Re: ZFS can't delete files when over quota
Message-ID:  <CADLo83_wEvUtYDgzoCoE4oNF7j3AMWe-AX6OvpxM12xd5AzJ7w@mail.gmail.com>
In-Reply-To: <CAFMmRNx2Xqo%2B3FZ6cT%2Ben-u26SVAecN%2B9ULfoV==fXRRTG7fDg@mail.gmail.com>
References:  <509E79C7.10300@shatow.net> <CADLo83-mZ0v=zXJnHF01%2BtOvCtBWtrOTZpcd-V%2BWTF7qXNMJUg@mail.gmail.com> <CAFMmRNx2Xqo%2B3FZ6cT%2Ben-u26SVAecN%2B9ULfoV==fXRRTG7fDg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <rysto32@gmail.com> 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 <crees@freebsd.org> wrote:
>>
>> On 10 November 2012 15:59, Bryan Drewery <bryan@shatow.net> 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"
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADLo83_wEvUtYDgzoCoE4oNF7j3AMWe-AX6OvpxM12xd5AzJ7w>