Skip to content

Commit d490527

Browse files
GongHeng2017deepin-bot[bot]
authored andcommitted
fix: [disk-encrypt] Disk decrypt failed.
-- Add _FILE_OFFSET_BITS=64 and _LARGEFILE64_SOURCE compile definitions to enable 64-bit file operations, fixing decryption failures on partitions larger than 2GB. -- Resolves seek position errors and line 951 execution failure in diskencrypt.cpp when processing large disk partitions. Log: fix issue Bug: https://pms.uniontech.com/bug-view-327113.html
1 parent 5031d1e commit d490527

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/dde-file-manager-daemon/daemonplugin-file-encrypt/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ target_include_directories(${PROJECT_NAME}
5656
${dfm-mount_INCLUDE_DIRS}
5757
)
5858

59-
target_compile_definitions(${PROJECT_NAME} PRIVATE DFMPLUGIN_DISK_ENCRYPT_LIBRARY)
59+
target_compile_definitions(${PROJECT_NAME} PRIVATE
60+
DFMPLUGIN_DISK_ENCRYPT_LIBRARY
61+
_FILE_OFFSET_BITS=64
62+
_LARGEFILE64_SOURCE
63+
)
6064
set_target_properties(${PROJECT_NAME} PROPERTIES LIBRARY_OUTPUT_DIRECTORY ../../)
6165

6266
install(TARGETS ${PROJECT_NAME} LIBRARY DESTINATION ${DFM_PLUGIN_DAEMON_EDGE_DIR})

0 commit comments

Comments
 (0)