已合并
新增 CloudDisk 文件不存在和名称过长错误码 #4266
phybee创建于 23 天前
新增 CloudDisk 文件不存在和名称过长错误码 #4266
已合并
Pull Request已成功合入, 合并人@openharmony_ci
(感谢 phybee 的贡献)23 天前 添加了label:waiting_on_author
openharmony_ci
23 天前 评论:
23 天前 评论:
感谢提交 Pull Requests!如果您提交的PR已经开发完毕,请评论 "start build" 触发门禁,更多交互操作,请访问OpenHarmony社区支持命令清单。如果需要调整订阅PR、Issue的变更状态,请访问订阅链接。
Thanks for submitting the pull request. If your Pull Request has already been developed, you can leave a "start build" comment to trigger the gated system. For more commands, please visit OpenHarmony Command List. If you need to change the subscription of a Pull Request or Issue, please visit the link.


23 天前 添加了label:dco检查成功
23 天前 修改了pull request 的描述
23 天前 修改了pull request 的描述
此处折叠了46条消息 查看更多
22 天前 通过审查
22 天前 关闭了关联的issue
22 天前 合入了pull request,合并节点 SHA:43d1a943e6dd7b569250e65e6475657b80644277
22 天前 删除了label:waiting_for_review
22 天前 添加了label:merged
Description:
新增 CloudDisk 文件不存在和文件名过长错误码,用于区分占位符查询、占位符创建等链路中的目标路径不存在和文件名过长场景。
本次改动包括:
E_FILE_NOT_EXIST = 34400024E_NAME_TOO_LONG = 34400025CLOUD_DISK_FILE_NOT_EXIST = 34400024CLOUD_DISK_NAME_TOO_LONG = 34400025innerToNErrTable中补充上述两个错误码映射ConvertPlaceholderXattrErrno中将ENOENT转换为E_FILE_NOT_EXISTConvertErrnoToCloudDiskError中将ENAMETOOLONG转换为E_NAME_TOO_LONGCreatePlaceholder错误归一化中保留E_NAME_TOO_LONG,避免被转换为其他错误码Issue number:
https://gitcode.com/openharmony/filemanagement_dfs_service/issues/3164
Test & Result:
已执行:
git diff --check:通过git diff --cached --check:通过interfaces/kits/js、ANI 或旧cloudDiskManagerNAPI 模块文件./build.sh --product-name rk3568 --build-target clouddisk_service_test --build-target ndk_test:通过150100424a5444345203698b4ed38800):CloudDiskServiceStaticTest.QueryPlaceholderByXattrTest004:CloudDiskServiceStaticTest.QueryPlaceholderByXattrTest011:CloudDiskServiceStaticTest.ConvertPlaceholderXattrErrnoTest001:CloudDiskServiceStaticTest.IsPlaceholderFileInnerTest011:CloudDiskServiceStaticTest.CreatePlaceholderBranchTest009:CloudDiskServiceStaticTest.CreatePlaceholderBranchTest010:CloudDiskServiceStaticTest.CreatePlaceholderFileInnerBranchTest008,7/7 通过150100424a5444345203698b4ed38800):CloudDiskManagerTest.ConvertToErrorCodeTest003:CloudDiskManagerTest.CreatePlaceholderFileTest005:CloudDiskManagerTest.IsPlaceholderFileIpcTest007:CloudDiskManagerTest.IsPlaceholderFileIpcTest008,4/4 通过cloud_disk_service_static_test,72/72 通过cloud_disk_manager_test,24/24 通过说明:
foundation/filemanagement/dfs_service主 checkout;测试前已确认本 PR 7 个错误码相关文件与codex/cloud-disk-error-codes分支内容一致。CodeCheck: