Commit Graph

14631 Commits

Author SHA1 Message Date
Yehuda Sadeh
842f3ac683 rgw: remove required indexes when modifying user info 2011-06-10 10:07:55 -07:00
Yehuda Sadeh
35beabf68b rgw: remove clutter 2011-06-09 22:15:01 -07:00
Yehuda Sadeh
c863f52245 rgw: fix user anonymous permissions 2011-06-09 22:05:55 -07:00
Yehuda Sadeh
4c798752c6 rgw: can specify alternative remote addr http header param 2011-06-09 17:03:23 -07:00
Yehuda Sadeh
cf5e70d434 rgw: skeleton for list multipart uploads 2011-06-09 16:40:58 -07:00
Yehuda Sadeh
3308aa6734 rgw: implement abort multipart upload
(not tested yet)
2011-06-09 13:57:30 -07:00
Yehuda Sadeh
802e9e5a3c rgw: implement namespace, use it in complete multipart 2011-06-09 13:25:46 -07:00
Yehuda Sadeh
233028153e rgw: set locator on all required rados calls 2011-06-08 13:14:45 -07:00
Yehuda Sadeh
5cf6d0e65e rgw: put locator key in rgw_obj 2011-06-08 13:10:01 -07:00
Yehuda Sadeh
8bd984d96a rgw: refactor rgw backend interface 2011-06-08 12:32:50 -07:00
Yehuda Sadeh
f225db7b7e rgw: remove parts after multi-part upload 2011-06-07 14:41:23 -07:00
Yehuda Sadeh
37fd3b5832 rgw: calc etag for multipart upload 2011-06-07 14:13:59 -07:00
Yehuda Sadeh
d11f471d8e rgw: silence gitbuilder (hopefully) 2011-06-06 15:10:23 -07:00
Yehuda Sadeh
b28ba774d6 osd: use osd_op.soid in call 2011-06-06 12:36:10 -07:00
Sage Weil
5cc146ea7c osd: allow src_oids to be snapped
Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-06 12:27:28 -07:00
Sage Weil
0baa108ba9 osd: src oid is in OSDOp now
Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-06 10:09:30 -07:00
Yehuda Sadeh
5a86126f56 osd: don't crash on malformed clone_range (now really) 2011-06-06 09:54:28 -07:00
Yehuda Sadeh
ea8917ea5a osd: don't crash on invalid encoded clone_range 2011-06-06 09:46:56 -07:00
Sage Weil
4d214b1e3a objecter: set src oid on clone_range properly
Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-06 09:42:58 -07:00
Yehuda Sadeh
b198e5aca9 messages: fix missing bit 2011-06-03 17:17:48 -07:00
Yehuda Sadeh
b0afaacb12 messages: fix test for multi op 2011-06-03 17:08:53 -07:00
Yehuda Sadeh
a635a9cbb8 rgw: multipart complete upload 2011-06-03 15:16:05 -07:00
Yehuda Sadeh
8e55e1861d librados: remove useless reference holding 2011-06-03 15:15:28 -07:00
Sage Weil
a082747c65 osd: make CLONERANGE src oid encoding more sane
Encode the src_oid in the OSDOp data space, but put it in a separate easy
to access member.  This avoids changing the overall MOSDOp encoding, and
seems cleaner overall.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-03 15:19:30 -07:00
Sage Weil
f2f2f42e95 osd: src src_oids oloc check
We need to ensure that the src and dst objects are always in the same pg.
That is true if
 - both oloc.keys match, or
 - the (src,dst) oloc.key matches the (dst,src) object name

Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-03 14:47:51 -07:00
Yehuda Sadeh
73ea844a3c librados: get reference to the io context for the pending async ops 2011-06-03 14:09:34 -07:00
Yehuda Sadeh
1aee7f98a2 rgw: use clone_range for multi upload completion 2011-06-03 14:09:24 -07:00
Yehuda Sadeh
a97451f6b1 librados: support clone_range 2011-06-03 11:22:11 -07:00
Yehuda Sadeh
44fe80abf7 Merge branch 'osd_clonerange' into rgw-multipart 2011-06-03 09:14:39 -07:00
Yehuda Sadeh
d4edd17cc4 rgw: multipart: use locator on created parts 2011-06-02 16:58:27 -07:00
Yehuda Sadeh
37666185a8 rgw: multipart additions and fixes 2011-06-02 15:24:11 -07:00
Yehuda Sadeh
4d03e1595b rgw: some more multipard upload list 2011-06-02 13:45:20 -07:00
Yehuda Sadeh
52bf3fce26 rgw: extend multipart list parts response 2011-06-02 13:33:49 -07:00
Sage Weil
a670b4b3c5 osd: implement clonerange
Clone ranges of bytes between objects, provided

 - src object locators match dest object
 - src objects are not missing
 - src objects are all head (CEPH_NOSNAP)
 -

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-02 13:24:09 -07:00
Sage Weil
fc4cc399f8 osd: give obc refs to RepGather
Just give the ref to RepGather instead of doing a get and put.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-02 13:24:03 -07:00
Yehuda Sadeh
b152a93c72 rgw: more cleanup 2011-06-02 10:39:18 -07:00
Yehuda Sadeh
3546cfdd54 rgw: some cleanup 2011-06-02 10:28:24 -07:00
Yehuda Sadeh
50731646a7 rgw: multipart upload parser test util 2011-06-02 09:49:30 -07:00
Yehuda Sadeh
2f3f36abe8 rgw: fix multipart upload complete parser 2011-06-02 09:39:30 -07:00
Yehuda Sadeh
711a77cfa0 rgw: multipart complete fix 2011-06-02 09:30:48 -07:00
Sage Weil
0cce0a5e99 filestore: allow clone_range to different offsets
The old OP_CLONERANGE would only clone a range of bytes at the same offset
in both objects.  Add an OP_CLONERANGE2 op code that adds a dst offset.
Continue to support the old op code so that we can decode old transactions.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-02 09:19:39 -07:00
Sage Weil
502baeab98 filestore: fix fallback/slow do_clone_range
We need to seek to the appropriate offsets on the src and destination
fd's for this to do the right thing.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-02 09:17:22 -07:00
Yehuda Sadeh
65dc8411a0 rgw: implement list multipart
still partially implemented
2011-06-01 15:13:49 -07:00
Yehuda Sadeh
5dd0e12225 rgw: handle multipart completion
still wip
2011-05-31 16:05:45 -07:00
Yehuda Sadeh
d29b3b77e6 rgw: parser for multi upload completion 2011-05-31 15:32:47 -07:00
Yehuda Sadeh
0806e65bd5 rgw: some more xml reshuffling 2011-05-31 14:59:40 -07:00
Yehuda Sadeh
f5d6be6ec9 rgw: move generic xml parsing code to some shared location 2011-05-31 14:31:57 -07:00
Sage Weil
efee7466c5 objecter, osd: clonerange operation
Add a src_oids field to MOSDOp, referenced by a new CLONERANGE osd op type
that will clone data from one object to another.

- The src_oids will need to have the same locator as the destination object
  type to ensure this operation can succeed.
- The OSD is going to have to do extra work to ensure the src object(s)
  are readable, etc., at the time of the clone.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-31 14:28:52 -07:00
Sage Weil
07c1989a18 librados: implement aio_flush
Implement a per-ioctx flush that blocks until all previously submitted
aio operations on the ioctx are safe.  Each aio gets a sequence number and
is put on a linked list attached to the ioctx.  The flush operation waits
for it to drain to the watermark set when flush is first called.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-05-31 13:58:19 -07:00
Sage Weil
6db2a4e213 crushtool: error out if uniform weights vary
Fixes: #1075
Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-31 13:46:13 -07:00