Loading fs_mgr/fs_mgr_fstab.cpp +12 −0 Original line number Diff line number Diff line Loading @@ -171,6 +171,18 @@ void ParseMountFlags(const std::string& flags, FstabEntry* entry) { fs_options.append(","); // appends a comma if not the first } fs_options.append(flag); if (entry->fs_type == "f2fs" && StartsWith(flag, "reserve_root=")) { std::string arg; if (auto equal_sign = flag.find('='); equal_sign != std::string::npos) { arg = flag.substr(equal_sign + 1); } if (!ParseInt(arg, &entry->reserved_size)) { LWARNING << "Warning: reserve_root= flag malformed: " << arg; } else { entry->reserved_size <<= 12; } } } } entry->fs_options = std::move(fs_options); Loading Loading
fs_mgr/fs_mgr_fstab.cpp +12 −0 Original line number Diff line number Diff line Loading @@ -171,6 +171,18 @@ void ParseMountFlags(const std::string& flags, FstabEntry* entry) { fs_options.append(","); // appends a comma if not the first } fs_options.append(flag); if (entry->fs_type == "f2fs" && StartsWith(flag, "reserve_root=")) { std::string arg; if (auto equal_sign = flag.find('='); equal_sign != std::string::npos) { arg = flag.substr(equal_sign + 1); } if (!ParseInt(arg, &entry->reserved_size)) { LWARNING << "Warning: reserve_root= flag malformed: " << arg; } else { entry->reserved_size <<= 12; } } } } entry->fs_options = std::move(fs_options); Loading