ceph-disk: set guid if reusing a journal partition

When reusing a journal partition (e.g. /dev/sda2) we should set a
new partition guid and link it correctly with the OSD. This way
the journal is symlinked by its persistent name and ceph-disk list
works correctly.

Signed-off-by: Dan van der Ster <daniel.vanderster@cern.ch>
rgw: RGWRados::get_obj() returns wrong len if len == 0

Fixes: #9877
We only updated if len was > 0, should update it if r >= 0. This was the
culprit for issue #9877.
Backport: giant, firefly

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
rgw: S3 object copy content type fix

Fixes: #9478
Backport: firefly, giant
Content type for S3 object copy response should be set to
application/xml.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
rgw: send back ETag on S3 object copy

Fixes: #9479
Backport: firefly, giant
We didn't send the etag back correctly. Original code assumed the etag
resided in the attrs, but attrs only contained request attrs.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
rgw: remove swift user manifest (DLO) hash calculation

Fixes: #9973
Backport: firefly, giant

Previously we were iterating through the parts, creating hash of the
parts etags (as S3 does for multipart uploads). However, swift just
calculates the etag for the empty manifest object.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
rgw: update swift subuser perm masks when authenticating

Fixes: #9918
Backport: firefly, giant
It seems that we weren't setting the swift perm mask correctly.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
EC: Allow bench.sh to test ISA backend also

Update bench.sh/plot tool to cover ISA backend.
ISA will output a fake echinique 'cauchy_good' so the plot tool
don't need to be changed.

Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
Merge pull request #2868 from zhouyuan/bench_tool_isa

EC: Allow bench.sh to test ISA backend also

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
Merge pull request #2864 from ceph/wip-9478

rgw: S3 object copy content type fix

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Merge pull request #2867 from ceph/wip-9918

rgw: update swift subuser perm masks when authenticating

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Merge pull request #2866 from ceph/wip-9973

rgw: remove swift user manifest (DLO) hash calculation

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Merge pull request #2865 from ceph/wip-9479

rgw: send back ETag on S3 object copy

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Merge pull request #2859 from ceph/wip-9877

rgw: RGWRados::get_obj() returns wrong len if len == 0

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Fedora 19 uses systemd but there is no systemd-run available in the release (rhbz#1157938), this patch makes sure that the init scripts check for availability of systemd-run before they use it (otherwise, they fall back to the default method)

Signed-off-by: Boris Ranto <branto@redhat.com>
Merge pull request #2871 from branto1/wip-systemd-run-not-avail

Fix rhbz#1157938

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
Merge pull request #2593 from cernceph/wip-reusepart

ceph-disk: set guid if reusing a journal partition

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Loic Dachary <loic-201408@dachary.org>