Re: btrfs dev del not transaction protected?

Marc Lehmann
2019-12-20T17:07:13Z

> Just while I was writing this mail, on 5.4.5, the _newly created_ btrfs
> filesystem I restored to went into readonly mode with ENOSPC. Another
> hardware problem?

btrfs check gave me a possible hint:

Checking filesystem on /dev/mapper/xmnt-cold15
UUID: 6e035cfe-5b47-406a-998f-b8ee6567abbc
[1/7] checking root items
[2/7] checking extents
[3/7] checking free space tree
cache and super generation don't match, space cache will be invalidated
[4/7] checking fs roots
[no other errors]

But mounting with clear_cache,space_cache=v2 didn't help, df still shows 0
bytes free, "btrfs f us" still shows 3tb unallocated. I'll play around with
it more...