Bug 61301 - deleting snapshot on "/" causes "forced readonly" after "error in btrfs_ioctl_snap_destroy:2252: errno=-22 unknown"
Summary: deleting snapshot on "/" causes "forced readonly" after "error in btrfs_ioctl...
Status: RESOLVED PATCH_ALREADY_AVAILABLE
Alias: None
Product: File System
Classification: Unclassified
Component: btrfs (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Josef Bacik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-14 22:37 UTC by Ahmet Inan
Modified: 2013-09-22 09:34 UTC (History)
1 user (show)

See Also:
Kernel Version: 3.11 + for-linus from Sep. 12
Tree: Mainline
Regression: No


Attachments
log of failure (4.43 KB, text/x-log)
2013-09-14 22:37 UTC, Ahmet Inan
Details

Description Ahmet Inan 2013-09-14 22:37:28 UTC
Created attachment 108371 [details]
log of failure

deleting a snapshot on a btrfs on "/" causes btrfs to go readonly.

but deleting a snapshot on the same manually mounted btrfs works, because something happens differently:

[   36.487655] btrfs: creating UUID tree

after that, btrfs is fixed, and deleting a snapshot from it on "/" works again.

this means that no btrfs that got mounted from initramfs ro and remounted rw later will ever receive that above fix.

of course i can reboot all my systems here using a usb stick and fix it that way or even do the fix in my initramfs, but it would be better to somehow fix it on remount,rw if possible, as everyone is doing the ro->remount,rw dance.

Ahmet
Comment 1 Ahmet Inan 2013-09-22 09:34:12 UTC
[PATCH] Btrfs: create the uuid tree on remount rw

fixes this, thanks!

Ahmet

Note You need to log in before you can comment on or make changes to this bug.