DroidFS icon indicating copy to clipboard operation
DroidFS copied to clipboard

[Feature Request] Allow setting cryfs block size

Open automorphism88 opened this issue 10 months ago • 2 comments

It appears that CryFS volumes created with DroidFS always use the default block size (currently 16k). But cryfs allows users to specify the block size with the --blocksize command line argument. Depending on the nature of the files stored and the underlying filesystem and device, users might have good reason to want to use a different block size. For example, for an exFAT filesystem, the usual block size is 128k. A CryFS volume stored there which uses the default block size of 16k will be wasting 7/8ths of the space in each filesystem block, since it will be creating files of size 16k that take up an entire 128k block on disk. In such a case, it would be far more space-efficient to use --blocksize 131072 when creating the CryFS filesystem. It seems that this is a primary use case for DroidFS, given that on an unrooted phone, you can't mount external storage formatted with ext4 or f2fs.

automorphism88 avatar Apr 05 '24 18:04 automorphism88

Yes. It's also tracked there: #14.

hardcore-sushi avatar Apr 07 '24 18:04 hardcore-sushi

Even 256k in my opinion. I have 556 items for just 8mb database. This increase time to copy a database.

serrq avatar Sep 29 '24 13:09 serrq