]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
10 years agocls_rgw: reorganize rgw_bucket_link_olh()
Yehuda Sadeh [Thu, 16 Oct 2014 16:43:58 +0000 (09:43 -0700)]
cls_rgw: reorganize rgw_bucket_link_olh()

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: convert RGWRados::get_attr() to new interface
Yehuda Sadeh [Tue, 14 Oct 2014 23:10:05 +0000 (16:10 -0700)]
rgw: convert RGWRados::get_attr() to new interface

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: switch get_obj_iterate() to new interface
Yehuda Sadeh [Tue, 14 Oct 2014 20:52:41 +0000 (13:52 -0700)]
rgw: switch get_obj_iterate() to new interface

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: remove unused code
Yehuda Sadeh [Fri, 10 Oct 2014 00:07:41 +0000 (17:07 -0700)]
rgw: remove unused code

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: purge intent log
Yehuda Sadeh [Fri, 10 Oct 2014 00:00:36 +0000 (17:00 -0700)]
rgw: purge intent log

We don't use the intent log anymore, just remove it.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: adjust to new interfaces
Yehuda Sadeh [Thu, 9 Oct 2014 03:33:57 +0000 (20:33 -0700)]
rgw: adjust to new interfaces

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: s/RGWRados::ObjectCtx/RGWObjectCtx
Yehuda Sadeh [Thu, 9 Oct 2014 03:20:43 +0000 (20:20 -0700)]
rgw: s/RGWRados::ObjectCtx/RGWObjectCtx

Can't forward declare nested class.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: clean up system obj interfaces
Yehuda Sadeh [Wed, 8 Oct 2014 00:07:22 +0000 (17:07 -0700)]
rgw: clean up system obj interfaces

Create a new structure to use, RGWRados::SystemObject, similar to the
previous changes made for the data objects.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: change RGWRados::get_attr()
Yehuda Sadeh [Tue, 7 Oct 2014 22:34:29 +0000 (15:34 -0700)]
rgw: change RGWRados::get_attr()

This is an interim fix, will need to make it work similarly to the other
calls.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: rework prepare_get_obj(), get_obj()
Yehuda Sadeh [Tue, 7 Oct 2014 00:10:42 +0000 (17:10 -0700)]
rgw: rework prepare_get_obj(), get_obj()

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: remove more unused code
Yehuda Sadeh [Mon, 6 Oct 2014 22:36:22 +0000 (15:36 -0700)]
rgw: remove more unused code

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: fix missing state initalization
Yehuda Sadeh [Mon, 6 Oct 2014 22:28:06 +0000 (15:28 -0700)]
rgw: fix missing state initalization

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: switch RGWRados::delete_obj() to new interface
Yehuda Sadeh [Mon, 6 Oct 2014 22:27:01 +0000 (15:27 -0700)]
rgw: switch RGWRados::delete_obj() to new interface

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: remove unused code
Yehuda Sadeh [Mon, 6 Oct 2014 21:21:06 +0000 (14:21 -0700)]
rgw: remove unused code

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: remove old index update calls
Yehuda Sadeh [Mon, 6 Oct 2014 21:02:04 +0000 (14:02 -0700)]
rgw: remove old index update calls

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: get rid of put_obj_meta(), replace with put_system_obj()
Yehuda Sadeh [Sat, 4 Oct 2014 04:49:45 +0000 (21:49 -0700)]
rgw: get rid of put_obj_meta(), replace with put_system_obj()

Last use of put_obj_meta() was for system object, simplify it for that
specific use case and rename.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: don't use put_system_obj() for data objects
Yehuda Sadeh [Sat, 4 Oct 2014 04:28:23 +0000 (21:28 -0700)]
rgw: don't use put_system_obj() for data objects

Use the new interface instead.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: pass around object context refrences, remove unused code
Yehuda Sadeh [Fri, 3 Oct 2014 23:59:26 +0000 (16:59 -0700)]
rgw: pass around object context refrences, remove unused code

We want to make it clear that the object context is required for
non-system objects, pass it by reference (rather than by pointer). Make
the put processors get it as a constructor param and keep it on the
object.
Still haven't updated everything, as some stuff is going to change
anyway.
Remove the plain put processor, as it is not used anymore.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: remove plain object processor
Yehuda Sadeh [Fri, 3 Oct 2014 23:05:34 +0000 (16:05 -0700)]
rgw: remove plain object processor

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: start reorganizing RGWRados
Yehuda Sadeh [Fri, 3 Oct 2014 22:55:23 +0000 (15:55 -0700)]
rgw: start reorganizing RGWRados

Need to reduce the various states of the different operations. The aim
is to separate the system objects operations from the data objects
operations, and compartmentalize the various systems.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: s/RGWRadosCtx/ObjectCtx
Yehuda Sadeh [Fri, 3 Oct 2014 16:43:28 +0000 (09:43 -0700)]
rgw: s/RGWRadosCtx/ObjectCtx

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: move RGWRadosCtx into RGWRados
Yehuda Sadeh [Fri, 3 Oct 2014 16:41:53 +0000 (09:41 -0700)]
rgw: move RGWRadosCtx into RGWRados

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: set olh if object has been versioned
Yehuda Sadeh [Fri, 3 Oct 2014 00:05:06 +0000 (17:05 -0700)]
rgw: set olh if object has been versioned

Bucket could have versioning suspended, but object has been versioned,
so once object has olh pointer in it, we need to continue maintainig it.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agocls_rgw: allow olh linking to null instance objects
Yehuda Sadeh [Thu, 2 Oct 2014 23:46:57 +0000 (16:46 -0700)]
cls_rgw: allow olh linking to null instance objects

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw, cls_rgw: don't remove olh objects
Yehuda Sadeh [Thu, 2 Oct 2014 22:02:42 +0000 (15:02 -0700)]
rgw, cls_rgw: don't remove olh objects

A single head object can contain both olh data, and object data. Don't
remove object if it has olh information on it, just reset the other
info.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: initial versioned object removal implementation
Yehuda Sadeh [Tue, 30 Sep 2014 00:03:45 +0000 (17:03 -0700)]
rgw: initial versioned object removal implementation

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: bucket versioning status is tri-state
Yehuda Sadeh [Mon, 29 Sep 2014 22:10:02 +0000 (15:10 -0700)]
rgw: bucket versioning status is tri-state

disabled, enabled, suspended.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: add support for version-id-marker
Yehuda Sadeh [Mon, 29 Sep 2014 21:06:22 +0000 (14:06 -0700)]
rgw: add support for version-id-marker

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw, cls_rgw: cls_bucket_list returns raw key in map
Yehuda Sadeh [Mon, 29 Sep 2014 20:17:11 +0000 (13:17 -0700)]
rgw, cls_rgw: cls_bucket_list returns raw key in map

This is needed so that we dump the objects in the required order (from
newest to oldest versions for each object). While we're at it, revert to
the original encoding of rgw_bucket_dir, which will be better for
backward compatibility.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agocls_rgw: update the appropriate prev key entry
Yehuda Sadeh [Mon, 29 Sep 2014 17:47:19 +0000 (10:47 -0700)]
cls_rgw: update the appropriate prev key entry

We need to update the previous key entry that it's no longer the latest,
need to use the list entry, not the data entry (which only serves as a
pointer to the list entry).

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: fix rgw_obj initialization
Yehuda Sadeh [Sun, 28 Sep 2014 01:05:30 +0000 (18:05 -0700)]
rgw: fix rgw_obj initialization

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: request state and various op functionality use rgw_obj_key
Yehuda Sadeh [Fri, 26 Sep 2014 21:18:41 +0000 (14:18 -0700)]
rgw: request state and various op functionality use rgw_obj_key

instead of plain string. This is needed so that we use the object
instance in the processing.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: cleanup, get rid of req_state::object
Yehuda Sadeh [Fri, 26 Sep 2014 20:14:02 +0000 (13:14 -0700)]
rgw: cleanup, get rid of req_state::object

We don't want this extra memory allocation

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: restful api now dumps versions
Yehuda Sadeh [Fri, 26 Sep 2014 18:11:17 +0000 (11:11 -0700)]
rgw: restful api now dumps versions

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: propagate dirent flags to rgw (from cls), other fixes
Yehuda Sadeh [Fri, 26 Sep 2014 16:48:17 +0000 (09:48 -0700)]
rgw: propagate dirent flags to rgw (from cls), other fixes

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agocls_rgw: deletion marker needs to keep instance entry
Yehuda Sadeh [Wed, 24 Sep 2014 19:45:33 +0000 (12:45 -0700)]
cls_rgw: deletion marker needs to keep instance entry

Otherwise we wouldn't be able to find it when we remove it.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw, cls_rgw: list object versions is optional
Yehuda Sadeh [Wed, 24 Sep 2014 17:21:20 +0000 (10:21 -0700)]
rgw, cls_rgw: list object versions is optional

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: bucket listing gets extra param for versioning
Yehuda Sadeh [Wed, 24 Sep 2014 00:01:28 +0000 (17:01 -0700)]
rgw: bucket listing gets extra param for versioning

Can specify whether we want to see versions or not.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agocls_rgw: revise the data model
Yehuda Sadeh [Wed, 24 Sep 2014 00:00:37 +0000 (17:00 -0700)]
cls_rgw: revise the data model

We don't need to keep a listing entry for the olh.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: add get_type() to rgw ops
Yehuda Sadeh [Mon, 22 Sep 2014 23:08:57 +0000 (16:08 -0700)]
rgw: add get_type() to rgw ops

This is needed so that we can identify ops correctly.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: add 'versioning', and 'versions' to handled subresources
Yehuda Sadeh [Mon, 22 Sep 2014 22:10:56 +0000 (15:10 -0700)]
rgw: add 'versioning', and 'versions' to handled subresources

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: object manifest should reflect instance
Yehuda Sadeh [Wed, 17 Sep 2014 17:22:58 +0000 (10:22 -0700)]
rgw: object manifest should reflect instance

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: update json encoding for rgw_obj
Yehuda Sadeh [Wed, 17 Sep 2014 17:02:14 +0000 (10:02 -0700)]
rgw: update json encoding for rgw_obj

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: follow olh if needed
Yehuda Sadeh [Wed, 17 Sep 2014 16:52:44 +0000 (09:52 -0700)]
rgw: follow olh if needed

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agocls_rgw: olh trim op is read/write
Yehuda Sadeh [Tue, 16 Sep 2014 18:56:23 +0000 (11:56 -0700)]
cls_rgw: olh trim op is read/write

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: tie set_olh() to object completion
Yehuda Sadeh [Thu, 11 Sep 2014 23:41:06 +0000 (16:41 -0700)]
rgw: tie set_olh() to object completion

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: more atomicity fixes, set_olh()
Yehuda Sadeh [Tue, 16 Dec 2014 06:12:48 +0000 (22:12 -0800)]
rgw: more atomicity fixes, set_olh()

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: guard against racing writes
Yehuda Sadeh [Tue, 16 Dec 2014 05:30:36 +0000 (21:30 -0800)]
rgw: guard against racing writes

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: olh atomicity groundwork
Yehuda Sadeh [Tue, 16 Dec 2014 06:12:17 +0000 (22:12 -0800)]
rgw: olh atomicity groundwork

still more to do

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw, cls_rgw: trim olh log functionality
Yehuda Sadeh [Wed, 10 Sep 2014 19:21:01 +0000 (12:21 -0700)]
rgw, cls_rgw: trim olh log functionality

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: apply olh log functionality
Yehuda Sadeh [Tue, 9 Sep 2014 23:39:10 +0000 (16:39 -0700)]
rgw: apply olh log functionality

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agocls_rgw: olh init op
Yehuda Sadeh [Tue, 9 Sep 2014 23:37:45 +0000 (16:37 -0700)]
cls_rgw: olh init op

Need an op to initialize olh when a new olh is created. It will set its
initial version and tag.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw-admin: add olh readlog command
Yehuda Sadeh [Tue, 9 Sep 2014 21:05:40 +0000 (14:05 -0700)]
rgw-admin: add olh readlog command

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: implement rgw_bucket_olh_log_entry::dump()
Yehuda Sadeh [Tue, 9 Sep 2014 20:31:42 +0000 (13:31 -0700)]
rgw: implement rgw_bucket_olh_log_entry::dump()

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: new api to retrieve olh log
Yehuda Sadeh [Tue, 9 Sep 2014 20:20:51 +0000 (13:20 -0700)]
rgw: new api to retrieve olh log

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: bucket index link olh interface
Yehuda Sadeh [Tue, 9 Sep 2014 18:18:43 +0000 (11:18 -0700)]
rgw: bucket index link olh interface

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agocls_rgw: object instance olh linking
Yehuda Sadeh [Mon, 8 Sep 2014 23:32:52 +0000 (16:32 -0700)]
cls_rgw: object instance olh linking

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agocls_rgw: bucket index link olh
Yehuda Sadeh [Sat, 6 Sep 2014 00:12:30 +0000 (17:12 -0700)]
cls_rgw: bucket index link olh

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agocls_rgw: encode / decode obj and list index keys
Yehuda Sadeh [Fri, 5 Sep 2014 21:24:09 +0000 (14:24 -0700)]
cls_rgw: encode / decode obj and list index keys

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agocls_rgw: prepare groundwork for olh
Yehuda Sadeh [Fri, 5 Sep 2014 00:12:40 +0000 (17:12 -0700)]
cls_rgw: prepare groundwork for olh

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: obj_stat() follows on olh
Yehuda Sadeh [Thu, 4 Sep 2014 22:20:39 +0000 (15:20 -0700)]
rgw: obj_stat() follows on olh

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: some code cleanup
Yehuda Sadeh [Thu, 4 Sep 2014 21:40:49 +0000 (14:40 -0700)]
rgw: some code cleanup

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: init olh tag
Yehuda Sadeh [Thu, 4 Sep 2014 21:30:53 +0000 (14:30 -0700)]
rgw: init olh tag

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: gen rand lowercase string (stl string version)
Yehuda Sadeh [Thu, 4 Sep 2014 21:05:00 +0000 (14:05 -0700)]
rgw: gen rand lowercase string (stl string version)

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: adjust return code when generating random strings
Yehuda Sadeh [Thu, 4 Sep 2014 20:39:18 +0000 (13:39 -0700)]
rgw: adjust return code when generating random strings

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: gen rand lower alphanumberic string
Yehuda Sadeh [Thu, 4 Sep 2014 20:36:34 +0000 (13:36 -0700)]
rgw: gen rand lower alphanumberic string

add a function to generate a random lowercase string, don't want other
characters.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: initial olh implementation
Yehuda Sadeh [Wed, 3 Sep 2014 20:02:26 +0000 (13:02 -0700)]
rgw: initial olh implementation

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: remove old unused code
Yehuda Sadeh [Wed, 3 Sep 2014 01:03:03 +0000 (18:03 -0700)]
rgw: remove old unused code

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: interface adjustment following a rebase
Yehuda Sadeh [Tue, 2 Sep 2014 22:46:24 +0000 (15:46 -0700)]
rgw: interface adjustment following a rebase

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: generate random instance id
Yehuda Sadeh [Fri, 8 Aug 2014 00:07:13 +0000 (17:07 -0700)]
rgw: generate random instance id

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoradosgw-admin: some commands use object_version param
Yehuda Sadeh [Thu, 7 Aug 2014 23:49:55 +0000 (16:49 -0700)]
radosgw-admin: some commands use object_version param

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: clean up some locator use
Yehuda Sadeh [Thu, 7 Aug 2014 23:10:12 +0000 (16:10 -0700)]
rgw: clean up some locator use

We don't use locators anymore. New objects are always created having the
locator equals to the object name. Don't allow this to happen through
magic, just get rid of code that is setting the locator. Legacy objects
should continue to work as we'll still decode the locator, and set it on
the ioctx where needed.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agotest: cls_rgw fixes
Yehuda Sadeh [Thu, 7 Aug 2014 20:29:28 +0000 (13:29 -0700)]
test: cls_rgw fixes

adapt to new objclass interfaces

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoradosgw-admin: adapt to new interfaces
Yehuda Sadeh [Thu, 7 Aug 2014 20:29:10 +0000 (13:29 -0700)]
radosgw-admin: adapt to new interfaces

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: adapt to new objclass interface
Yehuda Sadeh [Thu, 7 Aug 2014 00:31:12 +0000 (17:31 -0700)]
rgw: adapt to new objclass interface

use rgw_obj_key instead of string, and pass it on to the objclass.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agocls_rgw: change data structures to keep single object key structure
Yehuda Sadeh [Wed, 6 Aug 2014 23:41:14 +0000 (16:41 -0700)]
cls_rgw: change data structures to keep single object key structure

instead of keeping the key name and instance separately. Also, translate
key structure into the index key string representation.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: rename cls_rgw_obj::key to cls_rgw_obj::loc
Yehuda Sadeh [Wed, 6 Aug 2014 22:20:24 +0000 (15:20 -0700)]
rgw: rename cls_rgw_obj::key to cls_rgw_obj::loc

to avoid confusion.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw, cls_rgw: various datastructures use new rgw_obj_key
Yehuda Sadeh [Wed, 6 Aug 2014 22:12:21 +0000 (15:12 -0700)]
rgw, cls_rgw: various datastructures use new rgw_obj_key

Instead of using a string for referencing object's index key, use a
rgw_obj_key structure that's also references the object's instance.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: rename rgw_obj::key to rgw_obj::loc
Yehuda Sadeh [Wed, 6 Aug 2014 20:15:36 +0000 (13:15 -0700)]
rgw: rename rgw_obj::key to rgw_obj::loc

to avoid confusion

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: decouple object name from index representation
Yehuda Sadeh [Wed, 6 Aug 2014 19:49:55 +0000 (12:49 -0700)]
rgw: decouple object name from index representation

We can't have a direct mapping between the object name to the way we
index it in the bucket index. Have rgw_obj provide different
representations appropriately and use the proper ones where needed.
Introduce the instance element which will be used to refer to versioned
objects.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: remove unused code
Yehuda Sadeh [Wed, 6 Aug 2014 00:36:33 +0000 (17:36 -0700)]
rgw: remove unused code

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw, cls_rgw: add accounted_size for object metadata entry
Yehuda Sadeh [Tue, 5 Aug 2014 17:24:54 +0000 (10:24 -0700)]
rgw, cls_rgw: add accounted_size for object metadata entry

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: enable s3 get/set versioning ops
Yehuda Sadeh [Mon, 28 Jul 2014 22:41:48 +0000 (15:41 -0700)]
rgw: enable s3 get/set versioning ops

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: restful op to set bucket versioning
Yehuda Sadeh [Mon, 28 Jul 2014 22:32:23 +0000 (15:32 -0700)]
rgw: restful op to set bucket versioning

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: get bucket versioning status op
Yehuda Sadeh [Mon, 28 Jul 2014 22:02:10 +0000 (15:02 -0700)]
rgw: get bucket versioning status op

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: add versioning_enabled field to bucket info
Yehuda Sadeh [Mon, 28 Jul 2014 21:44:44 +0000 (14:44 -0700)]
rgw: add versioning_enabled field to bucket info

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge pull request #3342 from ceph/wip-10311
Sage Weil [Fri, 16 Jan 2015 05:45:56 +0000 (21:45 -0800)]
Merge pull request #3342 from ceph/wip-10311

rgw: only keep track for cleanup of rados objects that were written

Reviewed-by: Ray Lv <xiangyulv@gmail.com>
10 years agoos/FileJournal: Fix journal write fail, align for direct io
Sage Weil [Thu, 15 Jan 2015 19:20:18 +0000 (11:20 -0800)]
os/FileJournal: Fix journal write fail, align for direct io

when config journal_zero_on_create true, osd mkfs will fail when zeroing journal.
journal open with O_DIRECT, buf should align with blocksize.

Backport: giant, firefly, dumpling
Signed-off-by: Xie Rui <875016668@qq.com>
Reviewed-by: Sage Weil <sage@redhat.com>
10 years agomon: encode stashed monmap with all features
Jerry7X [Wed, 7 Jan 2015 06:29:02 +0000 (14:29 +0800)]
mon: encode stashed monmap with all features

latest_monmap that we stash is only used locally--the encoded bl is never shared. Which means we should just use CEPH_FEATURES_ALL all of the time.

Fixes: #5203
Backport: giant, firefly
Signed-off-by: Xie Rui <875016668@qq.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Joao Eduardo Luis <joao@redhat.com>
10 years agoMerge remote-tracking branch 'gh/next'
Sage Weil [Wed, 14 Jan 2015 16:57:33 +0000 (08:57 -0800)]
Merge remote-tracking branch 'gh/next'

10 years agoPendingReleaseNotes: make a note about librados flag changes
Sage Weil [Tue, 13 Jan 2015 20:23:37 +0000 (12:23 -0800)]
PendingReleaseNotes: make a note about librados flag changes

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #3360 from mattrichards/bump_rados_version
Sage Weil [Tue, 13 Jan 2015 20:18:04 +0000 (12:18 -0800)]
Merge pull request #3360 from mattrichards/bump_rados_version

librados: bump rados version number

Reviewed-by: Sage Weil <sage@redhat.com>
10 years ago0.91 v0.91
Jenkins [Tue, 13 Jan 2015 20:10:22 +0000 (12:10 -0800)]
0.91

10 years agoMerge pull request #2697 from ceph/wip-8900
Josh Durgin [Tue, 13 Jan 2015 19:17:29 +0000 (11:17 -0800)]
Merge pull request #2697 from ceph/wip-8900

RBD image watcher and new exclusive lock handling

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoMerge pull request #3254 from trociny/feature-10036
Samuel Just [Tue, 13 Jan 2015 18:56:29 +0000 (10:56 -0800)]
Merge pull request #3254 from trociny/feature-10036

osd: osd tree to show primary-affinity value

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #3281 from ceph/wip-10441-b
Samuel Just [Tue, 13 Jan 2015 18:55:29 +0000 (10:55 -0800)]
Merge pull request #3281 from ceph/wip-10441-b

osd: fix watch ordering bug 10441 option b

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoMerge pull request #3290 from ceph/wip-da-SCA-20150102
Samuel Just [Tue, 13 Jan 2015 18:54:45 +0000 (10:54 -0800)]
Merge pull request #3290 from ceph/wip-da-SCA-20150102

Coverity and SCA fixes

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #3302 from ceph/wip-9956
Samuel Just [Tue, 13 Jan 2015 18:54:21 +0000 (10:54 -0800)]
Merge pull request #3302 from ceph/wip-9956

os/FileStore: verify kernel is new enough before using extsize ioctl

Reviewed-by: Samuel Just <sjust@redhat.com>
10 years agoMerge pull request #3305 from majianpeng/fix5
Samuel Just [Tue, 13 Jan 2015 18:53:34 +0000 (10:53 -0800)]
Merge pull request #3305 from majianpeng/fix5

fix bugs about sync_filesystem

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #3364 from ceph/wip-quota-test
Gregory Farnum [Tue, 13 Jan 2015 15:08:30 +0000 (07:08 -0800)]
Merge pull request #3364 from ceph/wip-quota-test

qa: set -e explicitly in quota test

Reviewed-by: Greg Farnum <gfarnum@redhat.com>