On Feb 10 11:57 AM, Aaron Straus wrote:
>   Thanks for the traceback, I'll look into it tonight and try to figure
> out what went wrong.

Hi,

  Actually that's an easy one.  That's a bad way of saying file not
found i.e. you tried to delete a snapshot that wasn't there.  Please
apply the following patch on top of the previous one.

  Thanks!

                                =a=


-- 
===================
Aaron Straus
[email protected]

---

diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index 6e09873..496e8d6 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -787,6 +787,12 @@ static noinline int btrfs_ioctl_snap_destroy(struct file 
*file,
 
        mutex_unlock(&dir->d_inode->i_mutex);
 
+       if (!inode) {
+               printk(KERN_INFO "btrfs:  snapshot not found\n");
+               ret = -ENOENT;
+               goto out_dput;
+       }
+
        /* (1) locks needed? */
        if (!(inode->i_mode & S_IFDIR)) {
                printk(KERN_INFO "btrfs: not directory\n");
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to