ZFS can't delete files when over quota

Chris Rees crees at FreeBSD.org
Sat Nov 10 18:55:32 UTC 2012


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 at 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 at freebsd.org> wrote:
>>
>> On 10 November 2012 15:59, Bryan Drewery <bryan at 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 at freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-fs
>> To unsubscribe, send any mail to "freebsd-fs-unsubscribe at freebsd.org"
>
>


More information about the freebsd-fs mailing list