Ask / Submit
15

Request: BTRFS driver for Sailfish X

asked 2017-10-12 19:29:50 +0300

DrYak gravatar image

updated 2017-10-12 19:31:42 +0300

Hello !

Given :

  • The horrible patent mine-field around exFAT (official filesystem pre-formatted on retail µSDXC cards), requiring you to reformat the >32GB cards to something more friendly anyway.
  • The few advantage making BTRFS even more interesting than EXT4 (checksuming, copy-on-write, subvolumes, on-the-fly Zlib/LZO compression)
  • BTRFS was a first class citizen back on the Jolla 1

It would be very nice to have the BTRFS filesystem built-in into the Sailfish X kernel. Current reports by those who have finished installing is that it is not currently available.

I'll take probably some time next week to compile myself (like I did with the NTFS fuse support), and I'll make sure to make it available.

But it would be great if Jolla could consider enabling it in the kernel (like it was on Jolla 1) for those sailors who don't fear the BTRFS management weirdness.

edit retag flag offensive close delete

Comments

... and for Jolla C please.

cy8aer ( 2017-10-12 21:22:57 +0300 )edit

Does that mean that I can't install btrfs-progs on it and have it work? Me being a Jolla C user that is. I would like to know if this is something that won't be available soon, so I can format my SD card to ext4 instead and live with it.

sluimers ( 2017-10-12 22:09:24 +0300 )edit
2

I dont need btrfs anymore! btrfs crashed my Jolla 1 multiple time: no space left on device.

chris_bavaria ( 2017-10-14 11:39:46 +0300 )edit

@sluimers: Yes you will have the tools (installable) but you do not have the kernel modules.

cy8aer ( 2017-10-14 14:58:22 +0300 )edit

@chris_bavaria: Sic, it is not useful to use btrfs on small disks (like the 16GB Jolla) but sdcards with > 64GB are great with this filesystem.

cy8aer ( 2017-10-14 14:59:32 +0300 )edit

2 Answers

Sort by » oldest newest most voted
0

answered 2017-10-14 11:32:16 +0300

wvh gravatar image

Btrfs doesn't seem to be compiled into the kernel on Xperia X, while it is on Jolla 1:

# cat /proc/filesystems | grep btrfs

I moved my btrfs formatted memory card from Jolla 1 to Xperia X, and no luck.

There's f2fs listed though – perhaps I buy a new card and format it with that. Any word on what is officially supported?

edit flag offensive delete publish link more
0

answered 2017-10-14 14:03:24 +0300

veritanuda gravatar image

Actually a better choice might be for us to use F2FS.

It is optimised for NAND storage and has journalling as well as online defragging and rollback roll forward support.

edit flag offensive delete publish link more

Comments

Well f2fs is fine too if somebody from Jolla gives some official blessing, so we don't have to reformat next time there's an update from Jolla that rips out the kernel modules.

wvh ( 2017-10-15 01:07:46 +0300 )edit

optimised for NAND storage

Actually any log-structured (including venerable UDF also supported in Sailfish X) or copy-on-write (including BTRFS and ZFS) system is automatically friendly to flash storage by definition.

The only thing I miss are checksums, compression, and snapshots (but free roll-back, by virtue of log-structured is a nice compensation to missing snapshots).

Well f2fs is fine too if somebody from Jolla gives some official blessing

F2FS has recently started to become a standard feature in android kernels (I think I've heard that samsung uses it in production). We need an official work from Jolla, but I think chance are low that they'll make special efforts to remove it from kernels that they get from Sony in the future.

DrYak ( 2017-10-15 01:42:05 +0300 )edit
Login/Signup to Answer

Question tools

Follow
5 followers

Stats

Asked: 2017-10-12 19:29:50 +0300

Seen: 401 times

Last updated: Oct 14