[feature-request] Add btrfs-zero-log to fastboot recovery menu

asked 2015-11-29 16:08:36 +0200

pata gravatar image

updated 2015-12-08 06:23:35 +0200

The fastboot recovery options lack support to essential btrfs filesystem command called btrfs-zero-log.

Quite often unbootable btrfs filesystem can be recovered by removing the last not completed actions by zeroing the journal log. I have personally manage to fix badly corrupted, unbootable btrfs system with this command at least half dozen cases.

Latest effort to fix the broken btrfs system was with my Jolla which suffered crash during balance operation and was left unbootable state. Fastboot enviroment and it's recovery options did not work 'cause mmcblk0p28 was left unmountable state after balance crash. The fs corruption segfaults both mount and btrfs check --repair attempts.

I need to do dd mmcblk0p28 to mSD and run btrfs-zero-log in the Ubuntu PC. After dd'ing fs back to /dev/mmcblk0p28 my Jolla was all good again.

Please, bring the btrfs-zero-log to fastboot as Recovery option.

edit retag flag offensive close delete


One suggestion - Not saying it does not belong here but asking this in IRC and Dev mailing list would be a better option I guess...

anandrkris ( 2015-11-30 12:30:35 +0200 )edit

I like to expose this idea sort of peer review process that happens in this forum by voting/comment system. I do not like to shout to the wind without real backers to the feature-request.

Still, the proper implementation of btrfs is cruzial to Jolla Phone because heavy system dependencies of the btrfs features like snapshots to do very principal things like factory reset. I am just curious why this and some other commands of btrfs-tools package are left implemented in the first place?

pata ( 2015-11-30 13:10:24 +0200 )edit

Hmm, you're right. Makes sense. A casual chat in IRC dev channel wouldn't harm though...

anandrkris ( 2015-12-01 11:15:52 +0200 )edit