]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
8 years agoMerge pull request #9404 from SUSE/wip-16082-hammer
John Spray [Wed, 3 Aug 2016 12:31:09 +0000 (13:31 +0100)]
Merge pull request #9404 from SUSE/wip-16082-hammer

hammer: mds: wrongly treat symlink inode as normal file/dir when symlink inode is stale on kcephfs

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #10198 from SUSE/wip-16626-hammer
John Spray [Wed, 3 Aug 2016 12:30:58 +0000 (13:30 +0100)]
Merge pull request #10198 from SUSE/wip-16626-hammer

hammer: Failing file operations on kernel based cephfs mount point leaves unaccessible file behind on hammer 0.94.7

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #10182 from gaurav36/wip-configure-xfs-issue-hammer
Nathan Cutler [Fri, 29 Jul 2016 21:51:47 +0000 (23:51 +0200)]
Merge pull request #10182 from gaurav36/wip-configure-xfs-issue-hammer

hammer: configure: Add -D_LARGEFILE64_SOURCE to Linux build.

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #7961 from dzafman/wip-15002
Nathan Cutler [Fri, 29 Jul 2016 07:40:46 +0000 (09:40 +0200)]
Merge pull request #7961 from dzafman/wip-15002

hammer: objects unfound after repair (fixed by repeering the pg)

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #9125 from dzafman/wip-15635
Nathan Cutler [Fri, 29 Jul 2016 07:38:15 +0000 (09:38 +0200)]
Merge pull request #9125 from dzafman/wip-15635

hammer: [MON] Fixed calculation of %USED

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #8464 from dzafman/wip-13039-15315
Nathan Cutler [Fri, 29 Jul 2016 07:36:05 +0000 (09:36 +0200)]
Merge pull request #8464 from dzafman/wip-13039-15315

hammer: "FAILED assert(pg->info.history.same_interval_since == p.same_interval_since)" in upgrade:hammer-x-jewel-distro-basic-openstack

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #8573 from Vicente-Cheng/wip-15293-hammer
Nathan Cutler [Fri, 29 Jul 2016 07:32:47 +0000 (09:32 +0200)]
Merge pull request #8573 from Vicente-Cheng/wip-15293-hammer

hammer: ECBackend: send write and read sub ops on behalf of client ops at normal priority

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #8665 from Vicente-Cheng/wip-15525-hammer
Nathan Cutler [Fri, 29 Jul 2016 07:31:16 +0000 (09:31 +0200)]
Merge pull request #8665 from Vicente-Cheng/wip-15525-hammer

hammer: ReplicatedPG.cc: 430: FAILED assert(!actingbackfill.empty()): old watch timeout tries to queue repop on replica

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #8806 from SUSE/wip-15320-hammer
Nathan Cutler [Fri, 29 Jul 2016 07:29:58 +0000 (09:29 +0200)]
Merge pull request #8806 from SUSE/wip-15320-hammer

hammer: LibRadosMiscConnectFailure.ConnectFailure (not so intermittent) failure in upgrade/hammer-x

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #9001 from Vicente-Cheng/wip-15730-hammer
Nathan Cutler [Fri, 29 Jul 2016 07:28:32 +0000 (09:28 +0200)]
Merge pull request #9001 from Vicente-Cheng/wip-15730-hammer

hammer: osd: acting_primary not updated on split

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #9400 from Vicente-Cheng/wip-15796-hammer
Nathan Cutler [Fri, 29 Jul 2016 07:26:55 +0000 (09:26 +0200)]
Merge pull request #9400 from Vicente-Cheng/wip-15796-hammer

hammer: LibRadosWatchNotifyPPTests/LibRadosWatchNotifyPP.WatchNotify2Timeout/1 segv

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #9416 from chardan/wip-15770-hammer
Nathan Cutler [Fri, 29 Jul 2016 07:24:42 +0000 (09:24 +0200)]
Merge pull request #9416 from chardan/wip-15770-hammer

hammer: mon/OSDMonistor: improve reweight_by_utilization() logic

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #10189 from dreamhost/wip-16618-hammer
Nathan Cutler [Fri, 29 Jul 2016 07:21:25 +0000 (09:21 +0200)]
Merge pull request #10189 from dreamhost/wip-16618-hammer

rgw: fix multi-delete query param parsing.

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #8379 from Vicente-Cheng/wip-15283-hammer
Nathan Cutler [Fri, 29 Jul 2016 07:17:57 +0000 (09:17 +0200)]
Merge pull request #8379 from Vicente-Cheng/wip-15283-hammer

hammer: RGW shouldn't send Content-Type nor Content-Length for 304 responses

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #8313 from SUSE/wip-15257-hammer
Nathan Cutler [Fri, 29 Jul 2016 07:14:39 +0000 (09:14 +0200)]
Merge pull request #8313 from SUSE/wip-15257-hammer

hammer: rgw: radosgw server abort when user passed bad parameters to set quota

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
8 years agoMerge pull request #8528 from wido/hammer-issue-15348
Nathan Cutler [Fri, 29 Jul 2016 07:13:09 +0000 (09:13 +0200)]
Merge pull request #8528 from wido/hammer-issue-15348

rgw: Set Access-Control-Allow-Origin to a Asterisk if allowed in a rule

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #9671 from ceph/hammer-rgw-copy-if-newer
Nathan Cutler [Fri, 29 Jul 2016 07:10:57 +0000 (09:10 +0200)]
Merge pull request #9671 from ceph/hammer-rgw-copy-if-newer

hammer: rgw: backport rgwx-copy-if-newer for radosgw-agent

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #9961 from SUSE/wip-16190-hammer
Nathan Cutler [Fri, 29 Jul 2016 07:09:14 +0000 (09:09 +0200)]
Merge pull request #9961 from SUSE/wip-16190-hammer

hammer: subuser rm fails with status 125

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
8 years agoMerge pull request #9402 from SUSE/wip-15966-hammer
Nathan Cutler [Fri, 29 Jul 2016 07:07:10 +0000 (09:07 +0200)]
Merge pull request #9402 from SUSE/wip-15966-hammer

hammer: No Last-Modified, Content-Size and X-Object-Manifest headers if no segments in DLO manifest

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
8 years agomon/OSDMonitor: avoid potential expensive grace calculation 9416/head
xie xingguo [Tue, 31 May 2016 22:40:05 +0000 (15:40 -0700)]
mon/OSDMonitor: avoid potential expensive grace calculation

The grace calculation during check_failure() is now very complicated
and time-consuming. Therefore we shall skip this when it is possible.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
(cherry picked from commit 3557903d5d57642179b2ae137bedc389974b1956)

 Conflicts:
src/mon/OSDMonitor.cc

Resolved by choosing the move-to-top implementation. Removed unused vars.

8 years agomon/OSDMonitor: improve reweight_by_utilization() logic
xie xingguo [Tue, 26 Apr 2016 03:13:32 +0000 (11:13 +0800)]
mon/OSDMonitor: improve reweight_by_utilization() logic

By calling reweight_by_utilization() method, we are aiming at an evener result
of utilization among all osds. To achieve this, we shall decrease weights of
osds which are currently overloaded, and try to increase weights of osds which
are currently underloaded when it is possible.
However, we can't do this all at a time in order to avoid a massive pg migrations
between osds. Thus we introduce a max_osds limit to smooth the progress.

The problem here is that we have sorted the utilization of all osds in a descending
manner and we always try to decrease the weights of the most overloaded osds
since they are most likely to encounter a nearfull/full transition soon, but
we won't increase the weights from the most underloaded(least utilized by contrast)
at the same time, which I think is not quite reasonable.

Actually, the best thing would probably be to iterate over teh low and high osds
in parallel, and do the ones that are furthest from the average first.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
(cherry picked from commit e7a32534ebc9e27f955ff2d7a8d1db511383301e)

 Conflicts:
src/mon/OSDMonitor.cc

Resolved by picking the lambda implemenation.
NOTE: Because hammer does not support C++11, the lambda functionality from the
current master has been moved into the "Sorter" function object.

8 years agoMerge pull request #10038 from tchaikov/wip-16297-hammer 10464/head
Nathan Cutler [Wed, 27 Jul 2016 06:28:38 +0000 (08:28 +0200)]
Merge pull request #10038 from tchaikov/wip-16297-hammer

mon: Monitor: validate prefix on handle_command()

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #9090 from tchaikov/wip-13990-hammer
Nathan Cutler [Tue, 26 Jul 2016 17:08:23 +0000 (19:08 +0200)]
Merge pull request #9090 from tchaikov/wip-13990-hammer

hammer: osd: remove all stale osdmaps in handle_osd_map()

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #10227 from SUSE/wip-15081-hammer
Nathan Cutler [Mon, 25 Jul 2016 19:44:14 +0000 (21:44 +0200)]
Merge pull request #10227 from SUSE/wip-15081-hammer

hammer: When logging to a file fails, ceph logs excessively to stderr

Reviewed-by: Samuel Just <sjust@redhat.com>
8 years agoMerge pull request #9893 from Vicente-Cheng/wip-16430-hammer
Nathan Cutler [Mon, 25 Jul 2016 19:43:49 +0000 (21:43 +0200)]
Merge pull request #9893 from Vicente-Cheng/wip-16430-hammer

hammer: OSDMonitor: drop pg temps from not the current primary

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #9238 from SUSE/wip-15962-hammer
Nathan Cutler [Mon, 25 Jul 2016 19:42:54 +0000 (21:42 +0200)]
Merge pull request #9238 from SUSE/wip-15962-hammer

hammer: ceph-osd valgrind invalid reads/writes

Reviewed-by: Samuel Just <sjust@redhat.com>
8 years agoMerge pull request #8849 from SUSE/wip-14326-hammer
Nathan Cutler [Mon, 25 Jul 2016 19:42:06 +0000 (21:42 +0200)]
Merge pull request #8849 from SUSE/wip-14326-hammer

hammer: osd/PGLog.h: 88: FAILED assert(rollback_info_trimmed_to == head)

Reviewed-by: Samuel Just <sjust@redhat.com>
8 years agoMerge pull request #8845 from SUSE/wip-15647-hammer
Nathan Cutler [Mon, 25 Jul 2016 19:40:57 +0000 (21:40 +0200)]
Merge pull request #8845 from SUSE/wip-15647-hammer

hammer: osd: rados cppool omap to ec pool crashes osd

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #8470 from dachary/wip-15403-api-test-timeout-hammer
Loic Dachary [Mon, 25 Jul 2016 13:05:54 +0000 (15:05 +0200)]
Merge pull request #8470 from dachary/wip-15403-api-test-timeout-hammer

hammer: tests: be more generous with test timeout

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agoMerge pull request #9977 from shun-s/hammer
Nathan Cutler [Mon, 25 Jul 2016 13:05:31 +0000 (15:05 +0200)]
Merge pull request #9977 from shun-s/hammer

replcatedBackend: delete one of the repeated op->mark_started in ReplicatedBackend::sub_op_modify_impl

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #8960 from badone/wip-hammer-rados-bench-units
Nathan Cutler [Mon, 25 Jul 2016 10:51:45 +0000 (12:51 +0200)]
Merge pull request #8960 from badone/wip-hammer-rados-bench-units

hammer: Add units to rados bench output and clean up formatting

Reviewed-by: Nathan Cutler <ncutler@suse.com>
9 years agoOSDMonitor: drop pg temp from sources other than the current primary 9893/head
Samuel Just [Thu, 2 Jun 2016 17:43:17 +0000 (10:43 -0700)]
OSDMonitor: drop pg temp from sources other than the current primary

Fixes: http://tracker.ceph.com/issues/16127
Signed-off-by: Samuel Just <sjust@redhat.com>
(cherry picked from commit 1a07123c38e3fecb3fb2e43bbbae962d8411d287)

change:
            use NULL to replace the nullptr because we don't have C++11

9 years agoosd: reset session->osdmap if session is not waiting for a map anymore 9090/head
Kefu Chai [Thu, 12 May 2016 12:28:11 +0000 (20:28 +0800)]
osd: reset session->osdmap if session is not waiting for a map anymore

we should release the osdmap reference once we are done with it,
otherwise we might need to wait very long to update that reference with
a newer osdmap ref. this appears to be an OSDMap leak: it is held by an
quiet OSD::Session forever.

the osdmap is not reset in OSD::session_notify_pg_create(), because its
only caller is wake_pg_waiters(), which will call
dispatch_session_waiting() later. and dispatch_session_waiting() will
check the session->osdmap, and will also reset the osdmap if
session->waiting_for_pg.empty().

Fixes: http://tracker.ceph.com/issues/13990
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 82b0af7cedc3071cd83ee53479f834c23c62b7d0)

9 years agolog: do not repeat errors to stderr 10227/head
Sage Weil [Thu, 10 Mar 2016 14:50:07 +0000 (09:50 -0500)]
log: do not repeat errors to stderr

If we get an error writing to the log, log it only once to stderr.
This avoids generating, say, 72 GB of ENOSPC errors in
teuthology.log when /var/log fills up.

Fixes: #14616
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit d9ac0474b864afda58a44b9012cca4bbc6aaf509)

Conflicts:
src/log/Log.cc (drop m_uid and m_gid which are not used in hammer;
order of do_stderr, do_syslog, do_fd conditional blocks is reversed in
hammer; drop irrelevant speed optimization code from
5bfe05aebfefdff9022f0eb990805758e0edb1dc)

9 years agomds: disallow 'open truncate' non-regular inode 10198/head
Yan, Zheng [Fri, 15 Apr 2016 12:15:14 +0000 (20:15 +0800)]
mds: disallow 'open truncate' non-regular inode

Signed-off-by: Yan, Zheng <zyan@redhat.com>
(cherry picked from commit 0e4b6f2332bb4822cf324587a94144f1c98e4b97)

Conflicts:
src/mds/Server.cc (hammer has cur->inode.inline_version - in master
this has been changed to cur->inode.inline_data.version)

9 years agomds: only open non-regular inode with mode FILE_MODE_PIN
Yan, Zheng [Fri, 15 Apr 2016 11:45:23 +0000 (19:45 +0800)]
mds: only open non-regular inode with mode FILE_MODE_PIN

ceph_atomic_open() in kernel client does lookup and open at the same
time. So it can open a symlink inode with mode CEPH_FILE_MODE_WR.
Open a symlink inode with mode CEPH_FILE_MODE_WR triggers assertion
in Locker::check_inode_max_size();

Signed-off-by: Yan, Zheng <zyan@redhat.com>
(cherry picked from commit 4d15eb12298e007744486e28924a6f0ae071bd06)

9 years agorgw: fix multi-delete query param parsing. 10189/head
Robin H. Johnson [Thu, 7 Jul 2016 21:14:36 +0000 (14:14 -0700)]
rgw: fix multi-delete query param parsing.

Multi-delete is triggered by a query parameter on POST, but there are
multiple valid ways of representing it, and Ceph should accept ANY way
that has the query parameter set, regardless of what value or absence of
value.

This caused the RubyGem aws-sdk-v1 to break, and has been present since
multi-delete was first added in commit 0a1f4a97da, for the bobtail
release.

Fixes: http://tracker.ceph.com/issues/16618
Signed-off-by: Robin H. Johnson <robin.johnson@dreamhost.com>
(cherry picked from commit a7016e1b67e82641f0702fda4eae799e953063e6)

9 years agoMerge pull request #9407 from SUSE/wip-15833-hammer
Yehuda Sadeh [Thu, 7 Jul 2016 17:16:31 +0000 (10:16 -0700)]
Merge pull request #9407 from SUSE/wip-15833-hammer

hammer: RGW :: Subset of uploaded objects via radosgw are unretrievable when using erasure coded pool

9 years agoconfigure: Add -D_LARGEFILE64_SOURCE to Linux build. 10179/head 10181/head 10182/head
Ira Cooper [Thu, 31 Mar 2016 16:30:45 +0000 (12:30 -0400)]
configure: Add -D_LARGEFILE64_SOURCE to Linux build.

Fixes: http://tracker.ceph.com/issues/16612
Without -D_LARGEFILE64_SOURCE we can't build against libxfs,
because off64_t must be defined.

Signed-off-by: Ira Cooper <ira@redhat.com>
(cherry picked from commit 602425a)

9 years agoMerge pull request #8475 from Vicente-Cheng/wip-15343-hammer
Orit Wasserman [Wed, 6 Jul 2016 18:25:20 +0000 (20:25 +0200)]
Merge pull request #8475 from Vicente-Cheng/wip-15343-hammer

hammer: Multipart ListPartsResult has missing quotes on ETag
Reviewed-bu: Orit Wasserman <owasserm@redhat.com>

9 years agoreplcatedBackend: delete one useless op->mark_started as there are two in ReplicatedB... 9977/head
shun-s [Tue, 28 Jun 2016 07:30:16 +0000 (15:30 +0800)]
replcatedBackend: delete one useless op->mark_started as there are two in ReplicatedBackend::sub_op_modify_impl
delete one mark_start event as there are two same op->mark_started  in ReplicatedBackend::sub_op_modify_impl
Fixes: http://tracker.ceph.com/issues/16572
Signed-off-by: shun-s <song.shun3@zte.com.cn>
9 years agorgw: Set Access-Control-Allow-Origin to a Asterisk if allowed in a rule 8528/head
Wido den Hollander [Tue, 5 Apr 2016 09:14:16 +0000 (11:14 +0200)]
rgw: Set Access-Control-Allow-Origin to a Asterisk if allowed in a rule

Before this patch the RGW would respond with the Origin send by the client in the request
if a wildcard/asterisk was specified as a valid Origin.

This patch makes sure we respond with a header like this:

  Access-Control-Allow-Origin: *

This way a resource can be used on different Origins by the same browser and that browser
will use the content as the asterisk.

We also keep in mind that when Authorization is send by the client different rules apply.
In the case of Authorization we may not respond with an Asterisk, but we do have to
add the Vary header with 'Origin' as a value to let the browser know that for different
Origins it has to perform a new request.

More information: https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS

Fixes: #15348
Signed-off-by: Wido den Hollander <wido@42on.com>
(cherry picked from commit 0021e224480c7164330eaa7cc1078bb8795169bf)

Conflicts:
src/rgw/rgw_rest.cc
hammer still uses s->cio->print() where master uses STREAM_IO(s)->print()

9 years agomon: Monitor: validate prefix on handle_command() 10038/head
Kefu Chai [Thu, 30 Jun 2016 05:24:22 +0000 (13:24 +0800)]
mon: Monitor: validate prefix on handle_command()

Fixes: http://tracker.ceph.com/issues/16297
Signed-off-by: You Ji <youji@ebay.com>
(cherry picked from commit 7cb3434fed03a5497abfd00bcec7276b70df0654)

Conflicts:
    src/mon/Monitor.cc (the signature of Monitor::reply_command()
                        changed a little bit in master, so adapt the
                        commit to work with the old method)

9 years agoMerge pull request #8538 from Vicente-Cheng/wip-15360-hammer
Nathan Cutler [Mon, 27 Jun 2016 15:51:19 +0000 (17:51 +0200)]
Merge pull request #8538 from Vicente-Cheng/wip-15360-hammer

hammer: Linking to -lrbd causes process startup times to balloon

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agorgw: fix subuser rm command failure 9961/head
Orit Wasserman [Wed, 20 Jan 2016 16:24:38 +0000 (17:24 +0100)]
rgw: fix subuser rm command failure

Fixes: 14375
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
(cherry picked from commit bbc06e70b49b2917ee63985727cb92724fb99209)

Conflicts:
src/rgw/rgw_user.cc The "if (op_state.will_purge_keys())" block was
later changed to "always purge all associated keys" by
e7b7e1afc7a81c3f97976f7442fbdc5118b532b5 - keep the hammer version

9 years agoPipe: take a ref to existing while we are waiting 9238/head
Samuel Just [Thu, 12 May 2016 23:57:49 +0000 (16:57 -0700)]
Pipe: take a ref to existing while we are waiting

Otherwise, if it is reaped while we are waiting, it'll be a
use-after-free.

Fixes: http://tracker.ceph.com/issues/15870
Signed-off-by: Samuel Just <sjust@redhat.com>
(cherry picked from commit b224912d249453d754fc0478d3680f8cfa1a5c22)

Conflicts:
    src/msg/simple/Pipe.cc: nullptr changed to 0 because hammer is not compiled
    with -std=c++11

9 years agorgw: check for -ERR_NOT_MODIFIED in rgw_rest_s3.cc 8379/head
Nathan Cutler [Wed, 15 Jun 2016 14:53:16 +0000 (16:53 +0200)]
rgw: check for -ERR_NOT_MODIFIED in rgw_rest_s3.cc

Fixes: http://tracker.ceph.com/issues/16327
Signed-off-by: Nathan Cutler <ncutler@suse.com>
(cherry picked from commit fc38346c596d8b0bc156183970d6a327943cb577)

Conflicts:
src/rgw/rgw_rest_s3.cc
  use ret instead of op_ret to check op result

9 years agoerasure-code: s/unreocvery/unfound/ 7961/head
Loic Dachary [Thu, 28 May 2015 20:35:08 +0000 (22:35 +0200)]
erasure-code: s/unreocvery/unfound/

Signed-off-by: Loic Dachary <ldachary@redhat.com>
(cherry picked from commit 28820d1cd630ec466ed1069a437d740a025fb9aa)

9 years agotest: add test-case for repair unrecovery-ec pg.
Jianpeng Ma [Wed, 22 Apr 2015 01:45:04 +0000 (09:45 +0800)]
test: add test-case for repair unrecovery-ec pg.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
(cherry picked from commit 8f30db85219a6c57cb2fc03f4049a3f57446ca55)

9 years agoosd: Remove the duplicated func MissingLoc::get_all_missing.
Jianpeng Ma [Tue, 14 Apr 2015 05:29:54 +0000 (13:29 +0800)]
osd: Remove the duplicated func MissingLoc::get_all_missing.

It is the same as MissingLoc::get_needs_recovery.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
(cherry picked from commit bdd6205408cf20e039496728052a36c1a7d758c6)

9 years agoosd: Fix ec pg repair endless when met unrecover object.
Jianpeng Ma [Tue, 14 Apr 2015 01:11:58 +0000 (09:11 +0800)]
osd: Fix ec pg repair endless when met unrecover object.

In repair_object, if bad_peer is replica, it don't add soid in
MissingLoc for ec pool. If there are more bad replica for ec pool
which cause object can't recover, the later recoverying will endless.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit d51806f5b330d5f112281fbb95ea6addf994324e)

9 years agoMerge pull request #9722 from trociny/wip-16289-hammer
Mykola Golub [Thu, 16 Jun 2016 05:26:00 +0000 (08:26 +0300)]
Merge pull request #9722 from trociny/wip-16289-hammer

hammer: qa/workunits/rbd: respect RBD_CREATE_ARGS environment variable

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoqa/workunits/rbd: respect RBD_CREATE_ARGS environment variable 9722/head
Mykola Golub [Tue, 14 Jun 2016 12:28:06 +0000 (15:28 +0300)]
qa/workunits/rbd: respect RBD_CREATE_ARGS environment variable

Fixes: http://tracker.ceph.com/issues/16289
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
(cherry picked from commit 3048d3c7ce800a6174c54946b838e4e4079ec609)

9 years agorgw: fix identification of canceled operation 9671/head
Yehuda Sadeh [Sat, 19 Sep 2015 00:34:51 +0000 (17:34 -0700)]
rgw: fix identification of canceled operation

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit 9f63b15b3a7c4cc633ff90f529934f071aea7c62)

9 years agorgw: identify racing writes when using copy-if-newer
Yehuda Sadeh [Thu, 26 Mar 2015 00:35:40 +0000 (17:35 -0700)]
rgw: identify racing writes when using copy-if-newer

When copying an object from a different zone, and copy-if-newer is
specified, if the final meta write is canceled check whether the
destinatioin that was created is actually newer than our mtime,
otherwise retry.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit fe9c64b75caf3f53ce2dfdea5e39d794528dfc33)

9 years agorgw: translate http error 304 to appropriate status
Yehuda Sadeh [Wed, 25 Mar 2015 05:48:03 +0000 (22:48 -0700)]
rgw: translate http error 304 to appropriate status

So that we can return the appropriate response on a conditioinal multi
zone copy operation.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit 20d24e965884af440f94c7e3093587c7b8643cb9)

9 years agorgw: fix if-modified-since boundary
Yehuda Sadeh [Wed, 25 Mar 2015 03:24:55 +0000 (20:24 -0700)]
rgw: fix if-modified-since boundary

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit 27946e8ba4bc5dbfec2da319fa23266d5885d655)

9 years agorgw: add rgwx-copy-if-newer http header
Yehuda Sadeh [Wed, 25 Mar 2015 03:16:02 +0000 (20:16 -0700)]
rgw: add rgwx-copy-if-newer http header

Similar to IF_MOD_SINCE, but does not take a time argument, and should
protected against races (not there yet).

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit 8813a4401198636e0f4d3a220a0f726625a5c5d4)

9 years agoMerge pull request #8113 from Vicente-Cheng/wip-15023-hammer
Orit Wasserman [Tue, 7 Jun 2016 13:48:00 +0000 (15:48 +0200)]
Merge pull request #8113 from Vicente-Cheng/wip-15023-hammer

hammer: rgw: user quota may not adjust on bucket removal
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
9 years agoMerge pull request #9277 from ceph/wip-split-lfn-hammer
Samuel Just [Mon, 6 Jun 2016 19:42:14 +0000 (12:42 -0700)]
Merge pull request #9277 from ceph/wip-split-lfn-hammer

Hammer LFN collection split fix: backport of http://tracker.ceph.com/issues/14766

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #9521 from ceph/revert-9496-wip-16149-hammer
Josh Durgin [Mon, 6 Jun 2016 15:19:23 +0000 (08:19 -0700)]
Merge pull request #9521 from ceph/revert-9496-wip-16149-hammer

Revert "hammer: Scrub error: 0/1 pinned"

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoRevert "hammer: Scrub error: 0/1 pinned" 9521/head
Sage Weil [Mon, 6 Jun 2016 15:15:54 +0000 (11:15 -0400)]
Revert "hammer: Scrub error: 0/1 pinned"

9 years agoMerge pull request #9496 from Vicente-Cheng/wip-16149-hammer
Sage Weil [Mon, 6 Jun 2016 12:46:45 +0000 (08:46 -0400)]
Merge pull request #9496 from Vicente-Cheng/wip-16149-hammer

hammer: Scrub error: 0/1 pinned

9 years agoMerge pull request #8987 from dreamhost/hammer-wip-pr7712
Orit Wasserman [Mon, 6 Jun 2016 09:39:34 +0000 (11:39 +0200)]
Merge pull request #8987 from dreamhost/hammer-wip-pr7712

hammer: rgw: S3: set EncodingType in ListBucketResult
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
9 years agoReplicatedPG: adjust num_pinned in _delete_oid 9496/head
Samuel Just [Fri, 20 May 2016 20:59:10 +0000 (13:59 -0700)]
ReplicatedPG: adjust num_pinned in _delete_oid

Fixes: http://tracker.ceph.com/issues/15952
Signed-off-by: Samuel Just <sjust@redhat.com>
(cherry picked from commit 907d4e25c676fd3e1c2be90ce8ab5b64b362b0bc)

9 years agotest: Fix grouping of mon_cephdf_commands by moving to MON_TESTS 9125/head
David Zafman [Wed, 18 May 2016 00:14:07 +0000 (17:14 -0700)]
test: Fix grouping of mon_cephdf_commands by moving to MON_TESTS

Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 2fb0530a5650bcdb9c89d8bdd2504a7dd1642678)

Conflicts:
qa/workunits/cephtool/test.sh (trivial)

9 years agorgw: handle stripe transition when flushing final pending_data_bl 9407/head
Yehuda Sadeh [Thu, 5 May 2016 21:02:25 +0000 (14:02 -0700)]
rgw: handle stripe transition when flushing final pending_data_bl

Fixes: http://tracker.ceph.com/issues/15745
When complete_writing_data() is called, if pending_data_bl is not empty
we still need to handle stripe transition correctly. If pending_data_bl
has more data that we can allow in current stripe, move to the next one.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit b7a7d41839558b1a8786a66e27d9d80e606f61c7)

Conflicts:
src/rgw/rgw_rados.cc (hammer write_data() takes rgw_obj reference as
4th argument, hammer throttle_data() takes rgw_obj as 2nd argument)

9 years agomds: wrongly treat symlink inode as normal file/dir when symlink inode is stale on... 9404/head
Zhi Zhang [Tue, 3 May 2016 09:12:26 +0000 (17:12 +0800)]
mds: wrongly treat symlink inode as normal file/dir when symlink inode is stale on kcephfs

Signed-off-by: Zhi Zhang <zhangz.david@outlook.com>
(cherry picked from commit 88b6d669e37924536152a552db46ef43a7353562)

Conflicts:
src/mds/Server.cc (hammer has req->head.args.open.flags instead of just flags)

9 years agorgw: handle errors properly during GET on Swift's DLO. 9402/head
Radoslaw Zarzynski [Tue, 10 May 2016 15:45:20 +0000 (17:45 +0200)]
rgw: handle errors properly during GET on Swift's DLO.

Backport: Jewel, Hammer
Fixes: http://tracker.ceph.com/issues/15812
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
(cherry picked from commit 5ef0202a86a1e4cb56bd29d926555f114a1acdd8)

Conflicts:
src/rgw/rgw_op.cc (hammer uses ret instead of op_ret; enclosing if
   block in hammer does not check skip_manifest)

9 years agoosdc/Objecter: upper bound watch_check result 9400/head
Sage Weil [Fri, 6 May 2016 13:09:43 +0000 (09:09 -0400)]
osdc/Objecter: upper bound watch_check result

This way we always return a safe upper bound on the amount of time
since we did a check.  Among other things, this prevents us from
returning a value of 0, which is confusing.

Fixes: http://tracker.ceph.com/issues/15760
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 2e2ce365866a7569b55aff338a82c132aa927089)

Conflicts:
src/osdc/Objecter.cc
    By https://github.com/ceph/ceph/pull/8967, simply add 1 to return vaule.

9 years agoMerge pull request #9240 from yehudasa/wip-15886-hammer
Sage Weil [Sat, 21 May 2016 18:18:25 +0000 (14:18 -0400)]
Merge pull request #9240 from yehudasa/wip-15886-hammer

rgw: keep track of written_objs correctly

9 years agorgw: keep track of written_objs correctly 9240/head
Yehuda Sadeh [Mon, 16 May 2016 21:35:12 +0000 (14:35 -0700)]
rgw: keep track of written_objs correctly

Fixes: http://tracker.ceph.com/issues/15886
Only add a rados object to the written_objs list if the write
was successful. Otherwise if the write will be canceled for some
reason, we'd remove an object that we didn't write to. This was
a problem in a case where there's multiple writes that went to
the same part. The second writer should fail the write, since
we do an exclusive write. However, we added the object's name
to the written_objs list anyway, which was a real problem when
the old processor was disposed (as it was clearing the objects).

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit 8fd74d11682f9d0c9085d2dc445fc3eb5631f6e0)

9 years agoosd: remove all stale osdmaps in handle_osd_map()
Kefu Chai [Mon, 9 May 2016 07:01:46 +0000 (15:01 +0800)]
osd: remove all stale osdmaps in handle_osd_map()

in a large cluster, there are better chances that the OSD fails to trim
the cached osdmap in a timely manner. and sometimes, it is just unable
to keep up with the incoming osdmap if skip_maps, so the osdmap cache
can keep building up to over 250GB in size. in this change

* publish_superblock() before trimming the osdmaps, so other osdmap
  consumers of OSDService.superblock won't access the osdmaps being
  removed.
* trim all stale osdmaps in batch of conf->osd_target_transaction_size
  if skip_maps is true. in my test, it happens when the osd only
  receives the osdmap from monitor occasionally because the osd happens
  to be chosen when monitor wants to share a new osdmap with a random
  osd.
* always use dedicated transaction(s) for trimming osdmaps. so even in
  the normal case where we are able to trim all stale osdmaps in a
  single batch, a separated transaction is used. we can piggy back
  the commits for removing maps, but we keep it this way for simplicity.
* use std::min() instead MIN() for type safety

Fixes: http://tracker.ceph.com/issues/13990
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 369db9930887d75b498927da9c97733bff4472b6)

Conflicts:
    remove the C++11ism

9 years agoosd: populate the trim_thru epoch using MOSDMap.oldest_map
Kefu Chai [Wed, 16 Mar 2016 13:15:35 +0000 (21:15 +0800)]
osd: populate the trim_thru epoch using MOSDMap.oldest_map

instead of filling MOSDMap with the local oldest_map, we share
the maximum MOSDMap.oldest_map received so far with peers. That
way one OSD's failure to trim won't prevent it from sharing with
others that they are allowed to trim.

Fixes: #13990
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 9789c29fe0f82b236703f7ae4d356251fde3a46f)

Conflict: use atomic_t instead of std::atomic<>

9 years agoMerge pull request #9164 from liewegas/wip-osdmapcrc-hammer
Sage Weil [Wed, 18 May 2016 21:02:26 +0000 (17:02 -0400)]
Merge pull request #9164 from liewegas/wip-osdmapcrc-hammer

osd: dump full map bl at 20 when crc doesn't match

9 years agoosd: dump full map bl at 20 when crc doesn't match 9164/head
Sage Weil [Sun, 6 Sep 2015 17:56:38 +0000 (13:56 -0400)]
osd: dump full map bl at 20 when crc doesn't match

This will help us debug cases where the encoding doesn't match due
to a bug.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit bfe359af0b80f44ca04847f74d5a2d81097ce4e6)

9 years agoobj_bencher: cosmetic display fixes 8960/head
Dmitry Yatsushkevich [Mon, 23 Mar 2015 18:05:44 +0000 (11:05 -0700)]
obj_bencher: cosmetic display fixes

fix indents in output
change `snprintf' to `setprecision'

Signed-off-by: Dmitry Yatsushkevich <dyatsushkevich@mirantis.com>
(cherry picked from commit ddb422f40394ec2f4fc4a6a6cff49e43538121a9)
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
9 years agocommon: Add space between timestamp and "min lat:" in bench output
Brad Hubbard [Fri, 6 May 2016 05:05:42 +0000 (15:05 +1000)]
common: Add space between timestamp and "min lat:" in bench output

This change is taken from 069d95eaf49cadaa9a8fa1fa186455944a50ec7d
but I did not want to cherry-pick that patch since the rest of it
is purely cosmetic and would be unlikely to apply cleanly.

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
9 years agoMerge pull request #8535 from asheplyakov/bug-14512-hammer
Loic Dachary [Mon, 16 May 2016 11:02:44 +0000 (13:02 +0200)]
Merge pull request #8535 from asheplyakov/bug-14512-hammer

hammer: rbd snap rollback: restore the link to parent

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years ago[MON] Fixed calculation of %USED. Now it is shows (space used by all replicas)/(raw...
Adam Kupczyk [Wed, 2 Mar 2016 11:31:01 +0000 (12:31 +0100)]
[MON] Fixed calculation of %USED. Now it is shows (space used by all replicas)/(raw space available on OSDs). Before it was (size of pool)/(raw space available on OSDs).

Signed-off-by: Adam Kupczyk akupczyk@mirantis.com
(cherry picked from commit 71c4e525f27b8efd2aa4f3b5e95f4a13f123d41a)

9 years agomon: add a column 'RAW USED' for ceph df detail
Ruifeng Yang [Tue, 12 Jan 2016 14:08:41 +0000 (22:08 +0800)]
mon: add a column 'RAW USED' for ceph df detail

Signed-off-by: Ruifeng Yang <yangruifeng.09209@h3c.com>
(cherry picked from commit 2b597ae6d4d53974f28a2da090232577daf09979)

Conflicts:
qa/workunits/cephtool/test.sh (trivial)
src/mon/PGMonitor.cc (trivial)
src/mon/PGMonitor.h (trivial)

9 years agoMerge pull request #9107 from SUSE/wip-15867-hammer
Loic Dachary [Thu, 12 May 2016 21:17:51 +0000 (23:17 +0200)]
Merge pull request #9107 from SUSE/wip-15867-hammer

hammer: ceph-disk s/by-parttype-uuid/by-parttypeuuid/

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agosrc/test/objectstore/store_test.cc: fix shards for new tests 9277/head
Samuel Just [Thu, 12 May 2016 20:50:58 +0000 (13:50 -0700)]
src/test/objectstore/store_test.cc: fix shards for new tests

This didn't matter on master/jewel, but in hammer, keyvaluestore
asserts that gen != NO_GEN => shard != NO_SHARD.

Signed-off-by: Samuel Just <sjust@redhat.com>
9 years agodoc: s/by-parttype-uuid/by-parttypeuuid/ in ceph-disk 9107/head
Nathan Cutler [Thu, 12 May 2016 18:06:06 +0000 (20:06 +0200)]
doc: s/by-parttype-uuid/by-parttypeuuid/ in ceph-disk

Fixes: http://tracker.ceph.com/issues/15867
Signed-off-by: Nathan Cutler <ncutler@suse.com>
9 years ago0.94.7 v0.94.7
Jenkins Build Slave User [Tue, 10 May 2016 14:47:39 +0000 (14:47 +0000)]
0.94.7

9 years agostore_test: improve synthetic coverage of the ec stash case
Samuel Just [Sat, 12 Mar 2016 01:02:15 +0000 (17:02 -0800)]
store_test: improve synthetic coverage of the ec stash case

Signed-off-by: Samuel Just <sjust@redhat.com>
(cherry picked from commit f3a78e046d54260de01a4d1db8e104130e35cf42)

Conflicts:
        src/test/objectstore/store_test.cc

9 years agostore_test: improve synthetic test coverage of long object names
Samuel Just [Fri, 11 Mar 2016 22:05:37 +0000 (14:05 -0800)]
store_test: improve synthetic test coverage of long object names

1/2 of objects will now have long names, and we'll shift the region
of the hash space where new objects are created every 1024 objects
created.

Signed-off-by: Samuel Just <sjust@redhat.com>
(cherry picked from commit 4b44720f752ebac63454ecd338e2b0c77c8fe501)

Conflicts:
src/test/objectstore/store_test.cc

9 years agoTestRados: make half the objects have long names
Samuel Just [Thu, 10 Mar 2016 23:38:26 +0000 (15:38 -0800)]
TestRados: make half the objects have long names

Signed-off-by: Samuel Just <sjust@redhat.com>
(cherry picked from commit 8b64432d07a14df9dfd2ed1314783de16530b1d1)

9 years agoLFNIndex::lfn_translate: consider alt attr as well
Samuel Just [Thu, 10 Mar 2016 23:19:15 +0000 (15:19 -0800)]
LFNIndex::lfn_translate: consider alt attr as well

If the file has an alt attr, there are two possible matching
ghobjects.  We want to make sure we choose the right one for
the short name we have.  If we don't, a split while there are
two objects linking to the same inode will result in one of
the links being orphaned in the source directory, resulting
in #14766.

Signed-off-by: Samuel Just <sjust@redhat.com>
(cherry picked from commit 850ce11ea3c4dacc6ff1a3ce7ff37000818267c2)

9 years agoLFNIndex::created: fix return value with failure injection
Samuel Just [Thu, 10 Mar 2016 19:06:06 +0000 (11:06 -0800)]
LFNIndex::created: fix return value with failure injection

See comment for explanation.

Signed-off-by: Samuel Just <sjust@redhat.com>
(cherry picked from commit aec5560887a1c1dbbb5aba822280e2c1e05d5d8f)

9 years agostore_test: add reproducer for #14766
Samuel Just [Thu, 10 Mar 2016 19:03:13 +0000 (11:03 -0800)]
store_test: add reproducer for #14766

Signed-off-by: Samuel Just <sjust@redhat.com>
(cherry picked from commit 0fb67c772561aaca9261ac9094b74d7524498f6f)

Conflicts:
        src/test/objectstore/store_test.cc

9 years agoMerge pull request #8979 from athanatos/wip-15655-hammer
Sage Weil [Mon, 9 May 2016 17:55:24 +0000 (13:55 -0400)]
Merge pull request #8979 from athanatos/wip-15655-hammer

OSDMonitor: avoid underflow in reweight-by-utilization if max_change=1

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoosd/PG: update info.stats.* mappings on split 9001/head
Sage Weil [Fri, 29 Apr 2016 19:24:09 +0000 (15:24 -0400)]
osd/PG: update info.stats.* mappings on split

These are updated in the init and start_peering_interval paths, but not
on split.

Fixes: http://tracker.ceph.com/issues/15523
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 8b42294d98dd70715184991da5ba495fbe93d009)

9 years agohammer: rgw: S3: set EncodingType in ListBucketResult 8987/head
Vitja Makarov [Wed, 17 Feb 2016 10:46:18 +0000 (13:46 +0300)]
hammer: rgw: S3: set EncodingType in ListBucketResult

Signed-off-by: Victor Makarov <vitja.makarov@gmail.com>
(cherry picked from commit d2e281d2beb0a49aae0fd939f9387cb2af2692c8)
X-Github-PR: 7712
Backport: hammer
Signed-off-by: Robin H. Johnson <robin.johnson@dreamhost.com>
9 years agorados: Add units to rados bench output
Gu Zhongyan [Wed, 30 Dec 2015 08:42:07 +0000 (16:42 +0800)]
rados: Add units to rados bench output

Fixes: #12248
Signed-off-by: Gu Zhongyan <guzhongyan@360.com>
Reviewed-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 669b932934d60bbfa751cebd9340f11bd95e2853)
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
9 years agoMerge pull request #8583 from Vicente-Cheng/wip-15089-hammer
Orit Wasserman [Wed, 4 May 2016 09:37:33 +0000 (11:37 +0200)]
Merge pull request #8583 from Vicente-Cheng/wip-15089-hammer

hammer: Bucket owner isn't changed after unlink/link
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
9 years agoOSDMonitor: avoid underflow in reweight-by-utilization if max_change=1 8979/head
Samuel Just [Thu, 28 Apr 2016 20:47:48 +0000 (13:47 -0700)]
OSDMonitor: avoid underflow in reweight-by-utilization if max_change=1

Fixes: http://tracker.ceph.com/issues/15655
Signed-off-by: Samuel Just <sjust@redhat.com>
(cherry picked from commit c121bc51a5a877a49094cfbd3bd16af1f3ae5090)

9 years agoPGLog::rewind_divergent_log: fix rollback_info_trimmed_to before index() 8849/head
Samuel Just [Thu, 3 Dec 2015 01:20:19 +0000 (17:20 -0800)]
PGLog::rewind_divergent_log: fix rollback_info_trimmed_to before index()

Fixes: #13965
Signed-off-by: Samuel Just <sjust@redhat.com>
(cherry picked from commit 053ee919059b2671d40110e8dff8615dc13d34e0)

9 years agoTestPGLog: add test for 13965
Samuel Just [Thu, 3 Dec 2015 01:17:57 +0000 (17:17 -0800)]
TestPGLog: add test for 13965

Signed-off-by: Samuel Just <sjust@redhat.com>
(cherry picked from commit 66c7246491f4b6e5b95d80cc93c9157725a1a778)

9 years agoosd/Replicated: For CEPH_OSD_OP_WRITE, set data digest. 8845/head
Jianpeng Ma [Sun, 22 Mar 2015 14:07:24 +0000 (22:07 +0800)]
osd/Replicated: For CEPH_OSD_OP_WRITE, set data digest.

Add two cases which can add data digest for OP_WRITE:
a: offset = 0, and length > original size
b: offset = original size, and original has data_digest.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
(cherry picked from commit c7702bf85d3617b3e1c6619b8ebeff34932fc3e4)