Commit Graph

33 Commits

Author SHA1 Message Date
Yehuda Sadeh
be00f9b6cc rgw: pool names are not global
Move all hard coded pool names outside of the global
namespace.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2012-08-29 14:22:45 -07:00
Yehuda Sadeh
f71a416351 rgw: rgwstore is not global
Instead of using a global rgwstore param, just pass it around.
We now do it almost all around, except for in rgw_admin, where
we can still have the global one.
This is part of a cleanup that will allow setting flexible
pool names.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2012-08-29 14:22:45 -07:00
Yehuda Sadeh
5db4509b8e rgw: limit number of buckets per user
Adding a configurable max_buckets per user. Bucket creation
verifies that max_buckets has not reached.

Backport: dho
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2012-06-14 14:12:56 -07:00
Yehuda Sadeh
4ac04e8978 rgw: write bucket info in one operation 2011-12-23 12:47:16 -08:00
Yehuda Sadeh
fc6522a836 rgw: don't purge pools in any case 2011-11-04 13:13:41 -07:00
Yehuda Sadeh
a8450005c7 rgw: cleanup, remove unused user_id
Some access methods required user_id param, but that was never really used. At
this point we should just remove them.
2011-10-28 11:49:53 -07:00
Greg Farnum
b1bed3552c rgw: don't remove on-disk bucket object in rgw_user::rgw_remove_bucket
This is the same object that rgw_rados removes from the root pool now.
And since nobody calls rgw_remove_bucket_info, kill it.
(Hopefully we can kill all of the pi_buckets functions soon.)

While we're at it, rename rgw_remove_bucket to rgw_remove_user_bucket_info,
since that's what it does.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-09-30 10:36:16 -07:00
Greg Farnum
0eb433d41c rgw: remove rgw_[retrieve|store]_pool_info and ".pool" pool
Convert these to rgw_[get|store]_bucket_info, add the owner field
to bucket info, and store both lookup formats in the ".bucket" pool.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-09-28 13:51:20 -07:00
Yehuda Sadeh
ba7ab2f64b rgw: rename openstack to swift 2011-09-02 14:56:50 -07:00
Yehuda Sadeh
969c67aa4c rgw: s/OPENSTACK/SWIFT/g 2011-09-02 14:37:10 -07:00
Sage Weil
468e28ee60 osd: int pool -> int64_t pool
Internal interfaces.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-27 10:20:51 -07:00
Yehuda Sadeh
3ebe6b7779 rgw: store bucket info 2011-08-18 13:21:31 -07:00
Yehuda Sadeh
ff9537e520 rgw: prepare for bucket/pool decoupling
still not working
2011-08-17 17:11:55 -07:00
Yehuda Sadeh
7bbdcdbaab rgw: radosgw_admin user rm --purge-data 2011-06-27 17:21:05 -07:00
Yehuda Sadeh
757926a19f rgw: restructure permissions verification
apparently 100-continue was broken
2011-06-23 17:06:30 -07:00
Yehuda Sadeh
abfa872f64 Merge remote-tracking branch 'origin/master' into rgw-multipart
Conflicts:
	src/os/FileStore.cc
	src/rgw/rgw_admin.cc
	src/rgw/rgw_fs.h
	src/rgw/rgw_log.cc
	src/rgw/rgw_rados.cc
	src/rgw/rgw_user.cc
	src/rgw/rgw_user.h
2011-06-16 14:19:47 -07:00
Yehuda Sadeh
bc8e120939 rgw: log pool id, and store/retrieve pool id info 2011-06-13 15:30:48 -07:00
Yehuda Sadeh
a6afb0519b rgw: remove required indexes when modifying user info
Conflicts:

	src/rgw/rgw_admin.cc
2011-06-10 10:23:39 -07:00
Yehuda Sadeh
842f3ac683 rgw: remove required indexes when modifying user info 2011-06-10 10:07:55 -07:00
Yehuda Sadeh
bd0eb9a304 rgw_admin: subuser and key removal 2011-05-24 14:17:59 -07:00
Yehuda Sadeh
796528c3db rgw: remove get_user_info() and clean up
rename all the get_uid_by_* to get_user_info_by_*, remove get_user_info()
and call the appropriate function instead (either the by_uid or by_access_key).
2011-04-18 08:56:52 -07:00
Yehuda Sadeh
544ce94ab9 rgw: basic support for separate uid and access key 2011-04-15 17:20:44 -07:00
Yehuda Sadeh
1ded567c4a rgw: keep user info copy in the indexes
We index user by email and by openstack id, keeping a copy of the
user info structure there saves a round trip.
2011-03-22 16:40:35 -07:00
Yehuda Sadeh
00f2deeca7 rgw: can read old buckets format 2011-03-10 11:34:42 -08:00
Yehuda Sadeh
9bd627d159 rgw: can show bucket size and count 2011-03-03 14:15:00 -08:00
Yehuda Sadeh
fa8fa40169 rgw: bucket creation uses tmap for atomic update 2011-03-01 12:06:12 -08:00
Yehuda Sadeh
fe871d986b rgw: keep openstack user to rgw user mapping 2011-03-01 11:24:30 -08:00
Yehuda Sadeh
3c14051fbe rgw: fix cleanup for certain ops
This fixes bug #412
2010-09-15 16:22:29 -07:00
Markus Elfring
f4b9d9d847 Bug #98: Unique names for include guards
A couple of preprocessor symbols for include guards tampered with the reserved namespace.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Sage Weil <sage@newdream.net>
2010-06-17 10:47:37 -07:00
Greg Farnum
d08ef701e1 rgw: radosgw_admin can delete users from the system 2010-04-02 16:51:19 -07:00
Greg Farnum
62e1111239 rgw: Add documentation 2010-03-12 14:23:06 -08:00
Yehuda Sadeh
6ae47faebb include guards cleanup 2009-10-30 10:09:35 -07:00
Sage Weil
f8fb331226 radosgw: rename binaries rgw -> radosgw 2009-10-28 11:06:36 -07:00