From 4d157c4b0a707ab974bc9d596559f3de295a6714 Mon Sep 17 00:00:00 2001 From: y30045862 Date: Tue, 24 Oct 2023 15:42:14 +0800 Subject: [PATCH] test Signed-off-by: yangjingbo10 Change-Id: Idd0b6a02616e1416111a3566627c6e287477a173 --- frameworks/native/backup_ext/src/ext_extension.cpp | 3 ++- utils/include/b_resources/b_constants.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/frameworks/native/backup_ext/src/ext_extension.cpp b/frameworks/native/backup_ext/src/ext_extension.cpp index 1a1146937..33715a6c7 100644 --- a/frameworks/native/backup_ext/src/ext_extension.cpp +++ b/frameworks/native/backup_ext/src/ext_extension.cpp @@ -405,7 +405,8 @@ static void RestoreBigFiles() string fileName = path + item.first; auto [filePath, sta] = item.second; - + HILOGI("!!!!!!!!!!!!!fileName: %{public}s", fileName.c_str()); + HILOGI("!!!!!!!!!!!!!filePath: %{public}s", filePath.c_str()); if (access(fileName.data(), F_OK) != 0) { HILOGI("file dose not exist"); continue; diff --git a/utils/include/b_resources/b_constants.h b/utils/include/b_resources/b_constants.h index af90a541c..6659251e4 100644 --- a/utils/include/b_resources/b_constants.h +++ b/utils/include/b_resources/b_constants.h @@ -62,7 +62,7 @@ constexpr int DECIMAL_BASE = 10; // 十进制基数 constexpr int HEADER_SIZE = 512; // 打包文件头部Header结构体大小 constexpr int BLOCK_SIZE = 512; // 打包文件数据段尾部补充的全零字节块上限大小 constexpr int BLOCK_PADDING_SIZE = 1024; // 打包文件尾部追加的全零字节块大小 -constexpr off_t BIG_FILE_BOUNDARY = 1024 * 1024 * 1024; // 大文件边界 +constexpr off_t BIG_FILE_BOUNDARY = 3 * 1024 * 1024; // 大文件边界 constexpr unsigned long BIG_FILE_NAME_SIZE = 16; // 大文件名长度(hash处理) constexpr int PATHNAME_MAX_SIZE = 100; // 打包文件头部Header结构体各字段数组/字符串大小。 -- Gitee