| Files | Last commit | Last update |
|---|---|---|
restore deleted innerkits classes and fix test suites after PR #2985 Closes #2429 Restore disk.h/cpp, volume_core.h/cpp, volume_external.h/cpp that were deleted by PR #2985, along with their UT and fuzz test suites. Changes: - Restore innerkits source files: disk.h/cpp, volume_core.h/cpp, volume_external.h/cpp and add them back to BUILD.gn - Restore UT test files: disk_test.cpp, volume_core_test.cpp, volume_external_test.cpp and add targets to innerkits_impl/test/BUILD.gn - Restore fuzz test directories: disk_fuzzer, volumecore_fuzzer, volumeexternal_fuzzer and add entries to test/fuzztest/BUILD.gn - Add storage_daemon_provider_test to storage_daemon_ipc_test group (was missing from group deps) - Add process.cpp to storage_daemon_provider_test sources (link dep) - Remove UT test cases referencing deleted methods from storage_daemon_provider_test.cpp - Remove empty HandleDiskFormatOps and related entries from storagedaemonprovider_fuzzer.cpp - Remove non-compilable fuzz entries - Add valid new fuzz entries to storage_daemon_provider_fuzztest group Co-Authored-By: Agent <opencode-agent@openharmony.io> Signed-off-by: zhonglufu <zhonglufu@h-partners.com> Change-Id: I4057381e80c3a913e8aae626f9559e2d42a22bd6 | 20 hours ago | |
feat: split HMFS metadata proportionally to freeSize and systemDataSize Previously, HMFS filesystem metadata was entirely added to systemDataSize, causing displayed storage usage to be inaccurate. Now metadata is split proportionally: freeMetadata goes to getFreeSize, usedMetadata goes to getSystemDataSize, making storage display more accurate. - Move metadata calculation from storage_daemon to storage_manager - Add StorageStatusManager::GetMetaDataSize via GetDataSizeByPath IPC - Add StorageTotalStatusService::GetDataTotalSize for data-only total - Add StorageTotalStatusService::GetRawFreeSize for statvfs raw free - Modify GetFreeSize to add freeMetadata with graceful degradation - Modify GetSystemDataSize to add usedMetadata with graceful degradation - Fix bug: GetSystemDataSize uses GetRawFreeSize instead of GetFreeSize to avoid inflating freeMetadata numerator - Add overflow checks in GetMetaDataSize (multiply and add) - Remove redundant systemCacheSize variable in QuotaManager::GetSystemDataSize - Remove unused storage_daemon_communication.h include - Add UT test cases covering all branches with output value assertions - Update mock infrastructure for new methods - UT verified on RK3568 device: 54/54 passed Fixes #2327 Co-Authored-By: Agent Signed-off-by: Dyylll <daiyunlong4@huawei.com> Change-Id: I4c214a1173df6074bd2bf84b587e332c1f6a621b | 1 month ago |