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

Commit cc68996e authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 8340624 from d8c1cc4e to tm-release

Change-Id: Id4a6a2ec5ab5d508f9f1b3ec6b2b572968d32ced
parents dc7327a2 d8c1cc4e
Loading
Loading
Loading
Loading
+8 −11
Original line number Diff line number Diff line
@@ -154,11 +154,9 @@ int format_volume(const std::string& volume, const std::string& directory) {
  }

  bool needs_casefold = false;
  bool needs_projid = false;

  if (volume == "/data") {
    needs_casefold = android::base::GetBoolProperty("external_storage.casefold.enabled", false);
    needs_projid = android::base::GetBoolProperty("external_storage.projid.enabled", false);
  }

  int64_t length = 0;
@@ -202,11 +200,10 @@ int format_volume(const std::string& volume, const std::string& directory) {
      "/system/bin/mke2fs", "-F", "-t", "ext4", "-b", std::to_string(kBlockSize),
    };

    // Project ID's require wider inodes. The Quotas themselves are enabled by tune2fs on boot.
    if (needs_projid) {
    // Following is added for Project ID's quota as they require wider inodes.
    // The Quotas themselves are enabled by tune2fs on boot.
    mke2fs_args.push_back("-I");
    mke2fs_args.push_back("512");
    }

    if (v->fs_mgr_flags.ext_meta_csum) {
      mke2fs_args.push_back("-O");
@@ -255,10 +252,10 @@ int format_volume(const std::string& volume, const std::string& directory) {
    "-g",
    "android",
  };
  if (needs_projid) {

  make_f2fs_cmd.push_back("-O");
  make_f2fs_cmd.push_back("project_quota,extra_attr");
  }

  if (needs_casefold) {
    make_f2fs_cmd.push_back("-O");
    make_f2fs_cmd.push_back("casefold");