Andrea Gelmini
2013-Jun-07 01:00 UTC
btrfsck: free-space-cache.c:813: btrfs_add_free_space: Assertion `!(ret == -17)'' failed
Hi everybody, and thanks a lot for your support and work. I''ve an external hard drive formatted with BTRFS that sometimes goes readonly (no complains in logs or dmesg output). It happens with kernel v9.4 and latest vanilla kernel in dev, too. If I check it I got (git BTRFS progs): ./btrfsck /dev/mapper/toshi Checking filesystem on /dev/mapper/toshi UUID: 35eb15cd-d7e3-4be8-92f1-7b210353e241 checking extents checking free space cache btrfs: unable to add free space :-17 btrfsck: free-space-cache.c:813: btrfs_add_free_space: Assertion `!(ret == -17)'' failed. Thanks a lot for your time, Andrea -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Josef Bacik
2013-Jun-07 01:55 UTC
Re: btrfsck: free-space-cache.c:813: btrfs_add_free_space: Assertion `!(ret == -17)'' failed
On Thu, Jun 06, 2013 at 07:00:50PM -0600, Andrea Gelmini wrote:> Hi everybody, > and thanks a lot for your support and work. > > I''ve an external hard drive formatted with BTRFS that sometimes > goes readonly (no complains in logs or dmesg output). > > It happens with kernel v9.4 and latest vanilla kernel in dev, too. > > If I check it I got (git BTRFS progs): > > ./btrfsck /dev/mapper/toshi > Checking filesystem on /dev/mapper/toshi > UUID: 35eb15cd-d7e3-4be8-92f1-7b210353e241 > checking extents > checking free space cache > btrfs: unable to add free space :-17 > btrfsck: free-space-cache.c:813: btrfs_add_free_space: Assertion > `!(ret == -17)'' failed. >Can you try my git tree? git://github.com/josefbacik/btrfs-progs.git and see if that works better? Thanks, Josef -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Andrea Gelmini
2013-Jun-07 03:11 UTC
Re: btrfsck: free-space-cache.c:813: btrfs_add_free_space: Assertion `!(ret == -17)'' failed
2013/6/7 Josef Bacik <jbacik@fusionio.com>:> and see if that works better? Thanks,Perfect: Checking filesystem on /dev/mapper/toshi UUID: 35eb15cd-d7e3-4be8-92f1-7b210353e241 checking extents checking free space cache checking fs roots checking csums checking root refs found 86358842550 bytes used err is 0 total csum bytes: 628677868 total tree bytes: 843415552 total fs tree bytes: 64225280 total extent tree bytes: 59244544 btree space waste bytes: 105300529 file data blocks allocated: 643975458816 referenced 645510266880 Btrfs v0.20-rc1 Now I''m scrubbing. Thanks a lot, Andrea -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html