summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2020-08-22 15:30:45 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2020-08-22 15:30:45 +0100
commit8cb74cab2350e26ffe797edc84fdae227c14bfcb (patch)
tree1a6c6111073d87fe3d8b465e89fbb7789282fa1e
parentClang-format (diff)
downloadnetfs-gitfs-8cb74cab2350e26ffe797edc84fdae227c14bfcb.tar.bz2
netfs-gitfs-8cb74cab2350e26ffe797edc84fdae227c14bfcb.tar.xz
netfs-gitfs-8cb74cab2350e26ffe797edc84fdae227c14bfcb.zip
Add copyrange support
-rw-r--r--src/blob.cpp6
-rw-r--r--src/blob.h2
2 files changed, 8 insertions, 0 deletions
diff --git a/src/blob.cpp b/src/blob.cpp
index 4e1b2de..e3483b8 100644
--- a/src/blob.cpp
+++ b/src/blob.cpp
@@ -63,3 +63,9 @@ GitFS::Blob::write(long long int, long long int, Buffer, const ::Ice::Current &)
{
throw NetFS::SystemError(EROFS);
}
+
+long long int
+GitFS::Blob::copyrange(FilePrxPtr, long long int, long long int, long long int, int, const Ice::Current &)
+{
+ throw NetFS::SystemError(EROFS);
+}
diff --git a/src/blob.h b/src/blob.h
index 4398555..b873299 100644
--- a/src/blob.h
+++ b/src/blob.h
@@ -16,6 +16,8 @@ namespace GitFS {
Buffer read(long long int offset, long long int size, const ::Ice::Current & current) override;
void ftruncate(ReqEnv env, long long int size, const ::Ice::Current & current) override;
void write(long long int offset, long long int size, Buffer data, const ::Ice::Current & current) override;
+ long long int copyrange(
+ FilePrxPtr, long long int, long long int, long long int, int, const Ice::Current &) override;
private:
Git::BlobPtr getBlob() const;