aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/devicesupport/devicemanager.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2022-10-10 17:11:51 +0200
committerhjk <hjk@qt.io>2022-10-10 16:08:28 +0000
commit2e38cb68489326142f78d3c5c022b5a2ae866762 (patch)
tree74fc63156276f66e915b4cb9b2354868cb5f243f /src/plugins/projectexplorer/devicesupport/devicemanager.cpp
parent0c2a86b63f928a416b256e110330cef87fec85ba (diff)
Utils: Add an offset parameter to the content writing FilePath function
Use QFile::seek to implement locally and a dd seek based poor man's implementation on RL and docker. Change-Id: I241d1c34c00e991845d132ad8edefa1377ba1311 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/devicesupport/devicemanager.cpp')
-rw-r--r--src/plugins/projectexplorer/devicesupport/devicemanager.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/projectexplorer/devicesupport/devicemanager.cpp b/src/plugins/projectexplorer/devicesupport/devicemanager.cpp
index c0ae7a1726..febcc6436e 100644
--- a/src/plugins/projectexplorer/devicesupport/devicemanager.cpp
+++ b/src/plugins/projectexplorer/devicesupport/devicemanager.cpp
@@ -544,10 +544,12 @@ DeviceManager::DeviceManager(bool isInstance) : d(std::make_unique<DeviceManager
device->asyncFileContents(cont, filePath, maxSize, offset);
};
- deviceHooks.writeFileContents = [](const FilePath &filePath, const QByteArray &data) {
+ deviceHooks.writeFileContents = [](const FilePath &filePath,
+ const QByteArray &data,
+ qint64 offset) {
auto device = DeviceManager::deviceForPath(filePath);
QTC_ASSERT(device, return false);
- return device->writeFileContents(filePath, data);
+ return device->writeFileContents(filePath, data, offset);
};
deviceHooks.lastModified = [](const FilePath &filePath) {