Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d922df36 authored by Daniel Rosenberg's avatar Daniel Rosenberg
Browse files

fs_mgr_overlayfs: Support 16k F2FS



Currently, f2fs block size must be equal to page size.
If this is not the case in the future, this code should be revisited.

Bug: 279820706
Test: adb remount on 16k f2fs device
Change-Id: Ib0d1ea81f921be99471d0433c8499ae077208db7
Signed-off-by: default avatarDaniel Rosenberg <drosen@google.com>
parent d1067b3f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -383,6 +383,8 @@ bool MakeScratchFilesystem(const std::string& scratch_device) {
        fs_type = "f2fs";
        command = kMkF2fs + " -w "s;
        command += std::to_string(getpagesize());
        command = kMkF2fs + " -b "s;
        command += std::to_string(getpagesize());
        command += " -f -d1 -l" + android::base::Basename(kScratchMountPoint);
    } else if (!access(kMkExt4, X_OK) && fs_mgr_filesystem_available("ext4")) {
        fs_type = "ext4";