On Thu, Nov 11, 2010 at 09:32:06PM +0100, Goffredo Baroncelli wrote:
> On Thursday, 11 November, 2010, Josh Berry wrote:
> > Hi,
> > 
> > I have a cron script that runs periodically, taking new snapshots and
> > cleaning up old ones when space gets low on my filesystem.  This
> > morning, the script suddenly stopped being able to remove snapshots.
> > When I tried to remove one manually, I got the following:
> > 
> > # btrfs subvol del 2010-11-07-01:17:01
> > Delete subvolume '/btrfs/snapshot/2010-11-07-01:17:01'
> > ERROR: cannot delete '/btrfs/snapshot/2010-11-07-01:17:01'
> > 
> > There is nothing in dmesg or in the above output to tell me what the
> > problem is, how to fix it, etc.  I'm running kernel 2.6.36, and I
> > updated btrfs-progs-unstable to the lastest Git revision
> > (1b444cd2e6...), with the same result.
> > 
> > How do I diagnose this issue?  I'm not even sure where to start.
> 
> This error is due to a failure during the ioctl. Could you "strace" btrfs 
> subvolume delete ?
> 
> # strace btrfs subvolume delete /btrfs/snapshot/2010-11-07-01:17:01
> 
> Definetely we need a more verbose error handling, about the return of the 
> ioctl.

   I've made a good start on doing that. I'll try to finish it off
over the weekend.

   Hugo.

-- 
=== Hugo Mills: h...@... carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
              --- The future isn't what it used to be. ---               

Attachment: signature.asc
Description: Digital signature

Reply via email to