We have moved to a new Sailfish OS Forum. Please start new discussions there.
8

[Jolla 1]Is it possible to move away from btrfs?

asked 2016-06-02 10:25:23 +0300

rtr2001 gravatar image

updated 2016-06-02 10:30:17 +0300

The question says it all. Move to some to some other fs like ext3/4, at least for the user dataset. Or jfs (known for low cpu requirements). JFS has been reliable for me on laptop and desktop since it made it into mainstream linuxes - no idea how does it behave on a phone, though.

Is it possible at all ?

edit retag flag offensive close delete

2 Answers

Sort by » oldest newest most voted
1

answered 2016-06-02 10:39:09 +0300

juiceme gravatar image

Well, I wouldn't say it is impossible but it definitely is something that would require a lot of work to do.

From the top of my head; for example the Factory Reset feature depends on ability to revert to a BTRFS snapshot. Implementing that on top of another FS would take considerable effort. Also the partition layout is dependant on the QualComm blobs needed for the chipset operation. Again, these could be transferred on top of another FS given time and effort.

Lastly; you'd need a tool to do the FS change on the fly, in such way that it would minimise the possibility of corrupting userd device during the switchover. Doable but requires considerable effort.

All in all, not worth doing IMHO. Currently the BTRFS is working pretty good provided that it is balanced regularily (which is the case with the autobalancing done weekly)

edit flag offensive delete publish link more

Comments

3

"which is the case with the autobalancing done weekly"

Once again: this is not true, it was only true during v1.1.4, i.e. from May 4th to June 15th 2015 (if you were relying on this mechanism, you should do a btrfs fi show asap, especially if you're an early access user)

Also, the implementation of the factory reset is already done with ext4+LVM, since it's what the tablet has been shipped with, and apparently the Jolla C also. And you don't need to do the change of the fly. We could imagine a full reflash with the new FS.

Sthocs ( 2016-06-02 13:28:54 +0300 )edit

Thanks, I was under the impression that it was something that still exists. Why has the feature been removed, are there some problems it was causing?

This is from my device;

[root@Jolla nemo]# 
[root@Jolla nemo]# btrfs fi show
ERROR: unable get label Inappropriate ioctl for device
Label: 'sailfish'  uuid: 0f8a2490-53ed-4ff6-ba34-b81df3430387
    Total devices 1 FS bytes used 7.13GiB
    devid    1 size 13.75GiB used 11.13GiB path /dev/mmcblk0p28

Btrfs v3.16
[root@Jolla nemo]#

edit

Now after doing manual balancing, I have;

[root@Jolla nemo]# 
[root@Jolla nemo]# btrfs fi show
ERROR: unable get label Inappropriate ioctl for device
Label: 'sailfish'  uuid: 0f8a2490-53ed-4ff6-ba34-b81df3430387
    Total devices 1 FS bytes used 7.13GiB
    devid    1 size 13.75GiB used 10.12GiB path /dev/mmcblk0p28

Btrfs v3.16
[root@Jolla nemo]#
juiceme ( 2016-06-02 14:13:39 +0300 )edit
1

answered 2016-06-02 14:33:34 +0300

DameCENO gravatar image

http://talk.maemo.org/showthread.php?t=92449

Can give you a way to get away from btrfs atleast to some extent and use ext4 on your SDXC. That is what I am using and have absolutely no issues with btrfs balancing as my mmcblk0p28 has 5.5GB used out of the 14GB allocated to it, yet my storage says about 49GB used. It is worth giving a go, and see for yourself why I am on it for quite a while now. How it helps you

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
4 followers

Stats

Asked: 2016-06-02 10:25:23 +0300

Seen: 951 times

Last updated: Jun 02 '16