Originally posted by Spazturtle
View Post
Announcement
Collapse
No announcement yet.
Google Is Exploring Potentially Using Btrfs In Android
Collapse
X
-
Originally posted by kreijack View Post
BTRFS as a COW filesystem is suppose to be more "flash" friendly. The snapshots are definitely a killer feature even for a mobile phone (which resemble a desktop): think about reconfigure the system to a old "configuration", or providing an old configuration as fallback if an upgrade fail....
Also don't forget that btrfs as been baking for so long and it isn't ready yet, if anything they could throw some more developers at f2fs and improve whatever needs improvement and fix whatever corner cases that need to be fixed.
- Likes 1
Comment
-
Originally posted by garegin View Post
filesystem corruption shouldn't brick the device. Think about it, if the device was bricked from bad software, then it would be bricked before they flash it at the factory. In essense, dead before being born.
BTRFS on the other hand duplicate metadata (and data if you ask it to) on a single device, so in case you have a bitflip at the right spot BTRFS can recover transparently which is really what BTRFS is all about for me: ensuring your data is correct!
http://www.dirtcellar.net
- Likes 2
Comment
-
Originally posted by oleid View PostIt's working fine for Sailfish. Apart from that, you've all the benefits of the desktop : compression, subvolumes, snapshots.- horrendous issues with free space reporting and availability due to metadata block exhaustion on the fairly small storage on the phone (16 GB)
- general stability & data corruption issues due to the need to use old (Android) kernel & no real possibility to use a newer version from a more recent kernel that might have less bugs
- btrfs balance that might take days to finish and/or would still fail to free any space for metadata blocks - sometimes it would also crash in the middle of a balance run
- impossible to update factory reset snapshots so users who do hard resets have to do a hard reset have to apply many consecutive updates to get to the current "patch level" - and hope no intermediate update fails
Some of the issues faced by Jolla 1 users thanks to btrfs:
Root and home disks full and causing various problems
btrfs balance crashes
[problem] phone laggy and apps crashing [answered]
[Bug] btrfs: ERROR: unable get label Inappropriate ioctl for device
btrfs - phone bricked?
[1.1.7.24] Never ending balance
As a result of this debacle all Sailfish OS devices after the original Jolla smartphone (Jolla C, Intex Aquafish, Jolla Tablet, various community ports to ex-Android devices, etc.) use EXT4 on top of LVM with a simple 2 LV (Logical Volume) layout (rootfs & home), as can be seen for example in this factory recovery script.
Also as you can see from the script the recovery update problem has also been solved - there is now a separate recovery partition that holds recovery archives with content for rootfs & home, which can easily replaced with updated archives as needed. The new factory reset then works as follows:- drop the current LVM VG (Volume Group)
- create a new one
- create a rootfs and home LVs
- unpack the recovery archives to rootfs & home respectively (already contains the EXT4 filesystem)
- resize the filesystem to fill the LV size
- reboot
- Likes 7
Comment
-
Originally posted by oleid View PostIt's working fine for Sailfish. Apart from that, you've all the benefits of the desktop : compression, subvolumes, snapshots.- horrendous issues with free space reporting and availability due to metadata block exhaustion on the fairly small storage on the phone (16 GB)
- general stability & data corruption issues due to the need to use old (Android) kernel & no real possibility to use a newer version from a more recent kernel that might have less bugs
- btrfs balance that might take days to finish and/or would still fail to free any space for metadata blocks - sometimes it would also crash in the middle of a balance run
- impossible to update factory reset snapshots so users who do hard resets have to do a hard reset have to apply many consecutive updates to get to the current "patch level" - and hope no intermediate update fails
Some of the issues faced by Jolla 1 users thanks to btrfs:
Root and home disks full and causing various problems
btrfs balance crashes
[problem] phone laggy and apps crashing [answered]
[Bug] btrfs: ERROR: unable get label Inappropriate ioctl for device
btrfs - phone bricked?
[1.1.7.24] Never ending balance
As a result of this debacle all Sailfish OS devices after the original Jolla smartphone (Jolla C, Intex Aquafish, Jolla Tablet, various community ports to ex-Android devices, etc.) use EXT4 on top of LVM with a simple 2 LV (Logical Volume) layout (rootfs & home), as can be seen for example in this factory recovery script.
Also as you can see from the script the recovery update problem has also been solved - there is now a separate recovery partition that holds recovery archives with content for rootfs & home, which can easily replaced with updated archives as needed. The new factory reset then works as follows:- drop the current LVM VG (Volume Group)
- create a new one
- create a rootfs and home LVs
- unpack the recovery archives to rootfs & home respectively (already contains the EXT4 filesystem)
- resize the filesystem to fill the LV size
- reboot
- Likes 3
Comment
-
Compression would be good because SD cards are slow and many Android devices have slow internal storage.
The OS needs to reserve more space for itself than it thinks it needs regardless of partitioning scheme because no one wants to tell the user to delete pictures before their OS can install a security update.
Comment
Comment