| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
fix: replace DelayedSingleton with Meyer's singleton for StorageManagerConnect/CjStorageStatusService and clean up DelayedSingleton uses new(std::nothrow) which can return nullptr on OOM, causing crashes when callers dereference without checks. Meyer's singleton (static local reference) is C++11 thread-safe and never null. StorageManagerConnect: 44 arrow->dot replacements in kits_impl, 34 nullptr check blocks removed in taihe, SmDeathRecipient::OnRemoteDied fixed. CjStorageStatusService: 3 nullptr check blocks removed, CjSmDeathRecipient ::OnRemoteDied fixed. Move constructor and destructor to private for all three singleton classes to prevent external instantiation. Remove CreateForTesting/SetInstanceForTesting/GetInstanceForTesting/ ResetInstanceForTesting and instance_ptr_for_testing_ from StorageDaemonCommunication - testing utilities should not exist in business code. Update test files to use GetInstance() reference and ResetSdProxy(), following VolumeManagerService test pattern. Wrap over-120-char lines for cleancode compliance by extracting GetInstance() into local auto& reference. Co-Authored-By: Agent Signed-off-by: gzhuangzhuang <gengzhuangzhuang@huawei.com> Change-Id: I6954bebad07cf3cc0b2f5ee6066d1743eb87f755 | 12 天前 | |
检视意见修改 Signed-off-by: sunxiaoqianghappy <sunxiaoqiang7@h-partners.com> | 4 个月前 | |
refactor(storage_service): migrate disk/volume management to disk_manager Remove legacy volume and disk business code from storage_manager and storage_daemon. Keep volume space statistics forwarding via DiskManagerClient and retain storage_daemon IPC backend, netlink, and process utilities required by the new architecture. Update UT and fuzz targets accordingly. Signed-off-by: ning-jingyou <ningjingyou@huawei.com> Co-authored-by: Cursor <cursoragent@cursor.com> Change-Id: Iadc3561a5293c40c71677b16094f80075a4ce5ee | 2 天前 | |
fix: replace DelayedSingleton with Meyer's singleton for StorageManagerConnect/CjStorageStatusService and clean up DelayedSingleton uses new(std::nothrow) which can return nullptr on OOM, causing crashes when callers dereference without checks. Meyer's singleton (static local reference) is C++11 thread-safe and never null. StorageManagerConnect: 44 arrow->dot replacements in kits_impl, 34 nullptr check blocks removed in taihe, SmDeathRecipient::OnRemoteDied fixed. CjStorageStatusService: 3 nullptr check blocks removed, CjSmDeathRecipient ::OnRemoteDied fixed. Move constructor and destructor to private for all three singleton classes to prevent external instantiation. Remove CreateForTesting/SetInstanceForTesting/GetInstanceForTesting/ ResetInstanceForTesting and instance_ptr_for_testing_ from StorageDaemonCommunication - testing utilities should not exist in business code. Update test files to use GetInstance() reference and ResetSdProxy(), following VolumeManagerService test pattern. Wrap over-120-char lines for cleancode compliance by extracting GetInstance() into local auto& reference. Co-Authored-By: Agent Signed-off-by: gzhuangzhuang <gengzhuangzhuang@huawei.com> Change-Id: I6954bebad07cf3cc0b2f5ee6066d1743eb87f755 | 12 天前 | |
新增js接口支持查询文件系统总inode数、空闲inode数和当前应用的inode占用信息 Signed-off-by: daiyunlong <daiyunlong4@huawei.com> Co-Authored-By: Agent | 3 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 12 天前 | ||
| 4 个月前 | ||
| 2 天前 | ||
| 12 天前 | ||
| 3 个月前 |