Loading fs_mgr/fs_mgr_format.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -136,6 +136,7 @@ static int format_f2fs(const std::string& fs_blkdev, uint64_t dev_sz, bool needs /* Format the partition using the calculated length */ const auto size_str = std::to_string(dev_sz / getpagesize()); std::string block_size = std::to_string(getpagesize()); std::vector<const char*> args = {"/system/bin/make_f2fs", "-g", "android"}; if (needs_projid) { Loading @@ -154,6 +155,10 @@ static int format_f2fs(const std::string& fs_blkdev, uint64_t dev_sz, bool needs args.push_back("-O"); args.push_back("extra_attr"); } args.push_back("-w"); args.push_back(block_size.c_str()); args.push_back("-b"); args.push_back(block_size.c_str()); if (!zoned_device.empty()) { args.push_back("-c"); args.push_back(zoned_device.c_str()); Loading fs_mgr/fs_mgr_overlayfs_control.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -356,6 +356,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"; Loading Loading
fs_mgr/fs_mgr_format.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -136,6 +136,7 @@ static int format_f2fs(const std::string& fs_blkdev, uint64_t dev_sz, bool needs /* Format the partition using the calculated length */ const auto size_str = std::to_string(dev_sz / getpagesize()); std::string block_size = std::to_string(getpagesize()); std::vector<const char*> args = {"/system/bin/make_f2fs", "-g", "android"}; if (needs_projid) { Loading @@ -154,6 +155,10 @@ static int format_f2fs(const std::string& fs_blkdev, uint64_t dev_sz, bool needs args.push_back("-O"); args.push_back("extra_attr"); } args.push_back("-w"); args.push_back(block_size.c_str()); args.push_back("-b"); args.push_back(block_size.c_str()); if (!zoned_device.empty()) { args.push_back("-c"); args.push_back(zoned_device.c_str()); Loading
fs_mgr/fs_mgr_overlayfs_control.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -356,6 +356,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"; Loading