Date: Sat, 10 Nov 2012 20:03:01 +0000 From: Chris Rees <utisoft@gmail.com> To: Mateusz Guzik <mjguzik@gmail.com> Cc: freebsd-fs@freebsd.org, Bryan Drewery <bryan@shatow.net> Subject: Re: ZFS can't delete files when over quota Message-ID: <CADLo83-mi=ffW-Y846Ga_mT7SEmBFrWSzQn=DY8ftadoDf4_hA@mail.gmail.com> In-Reply-To: <20121110194759.GA19081@dft-labs.eu> References: <509E79C7.10300@shatow.net> <CADLo83-mZ0v=zXJnHF01%2BtOvCtBWtrOTZpcd-V%2BWTF7qXNMJUg@mail.gmail.com> <CAFMmRNx2Xqo%2B3FZ6cT%2Ben-u26SVAecN%2B9ULfoV==fXRRTG7fDg@mail.gmail.com> <CADLo83_wEvUtYDgzoCoE4oNF7j3AMWe-AX6OvpxM12xd5AzJ7w@mail.gmail.com> <509EA942.9060801@shatow.net> <20121110194759.GA19081@dft-labs.eu>
next in thread | previous in thread | raw e-mail | index | archive | help
On 10 Nov 2012 19:48, "Mateusz Guzik" <mjguzik@gmail.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADLo83-mi=ffW-Y846Ga_mT7SEmBFrWSzQn=DY8ftadoDf4_hA>