summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qabstractfileengine_p.h
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2017-02-22 12:46:59 +0100
committerSimon Hausmann <simon.hausmann@qt.io>2017-02-24 11:35:25 +0000
commitd5078161aadac7bb36862d8eb0d6d8c27eb58c60 (patch)
treeb33fd1d0f0bd2515c3db6a1c0c94d34be7622c51 /src/corelib/io/qabstractfileengine_p.h
parentf971a0d65cc4bc64dc61bdd2a4b659b382eb996f (diff)
Speed up QFile::copy on Linux file systems that support cloning
Originally inherited from Btrfs, recent Linux kernels have a system call that allows cloning the contents of a file from another one if the underlying file system supports it. Change-Id: I9df66b65faef99f3bbed8a88fb6b6009baeef32e Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/io/qabstractfileengine_p.h')
-rw-r--r--src/corelib/io/qabstractfileengine_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/io/qabstractfileengine_p.h b/src/corelib/io/qabstractfileengine_p.h
index 48b3dec324..dbf0d77b15 100644
--- a/src/corelib/io/qabstractfileengine_p.h
+++ b/src/corelib/io/qabstractfileengine_p.h
@@ -147,6 +147,7 @@ public:
virtual QDateTime fileTime(FileTime time) const;
virtual void setFileName(const QString &file);
virtual int handle() const;
+ virtual bool clone(int sourceHandle);
bool atEnd() const;
uchar *map(qint64 offset, qint64 size, QFile::MemoryMapFlags flags);
bool unmap(uchar *ptr);