]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: add new 'copy-from2' operation
authorLuis Henriques <lhenriques@suse.com>
Fri, 15 Nov 2019 10:03:41 +0000 (10:03 +0000)
committerLuis Henriques <lhenriques@suse.com>
Wed, 4 Dec 2019 11:09:51 +0000 (11:09 +0000)
commitdcd6a99ef9f5afaef11ab755f05675be502e9d3b
treefaa8f0d35bdd64faed179100993051ece046f17a
parentaaba179533a9cb0b1013d1b8a0e0ad81e73fa109
osd: add new 'copy-from2' operation

The new 'copy-from2' is very similar to the original 'copy-from'
operation.  The differences are:

 - It validates the flags and return an error if there are invalid bits
   set in it;
 - It processes a new 'copy-from' flag (*_TRUNCATE_SEQ) which allows a
   client to send 2 extra parameters, truncate_seq and truncate_size.
   These will be used for the destination object instead of simply being
   copied from the source object.

Signed-off-by: Luis Henriques <lhenriques@suse.com>
src/include/rados.h
src/osd/PrimaryLogPG.cc
src/osd/osd_op_util.cc