From 43828dffe74df4980fa373f968485ffb43b691fa Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Sat, 11 Feb 2012 21:14:53 -0800 Subject: [PATCH] filestore: return error from CLONE Aie! Signed-off-by: Sage Weil --- src/os/FileStore.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/FileStore.cc b/src/os/FileStore.cc index dda2280b38553..aa66517926d5d 100644 --- a/src/os/FileStore.cc +++ b/src/os/FileStore.cc @@ -2745,7 +2745,7 @@ int FileStore::_clone(coll_t cid, const hobject_t& oldoid, const hobject_t& newo TEMP_FAILURE_RETRY(::close(o)); out2: dout(10) << "clone " << cid << "/" << oldoid << " -> " << cid << "/" << newoid << " = " << r << dendl; - return 0; + return r; } int FileStore::_do_clone_range(int from, int to, uint64_t srcoff, uint64_t len, uint64_t dstoff) -- 2.39.5