Commit Graph

17503 Commits

Author SHA1 Message Date
Henry C Chang
ea9f2f62c4 interval_set: fix truncation of _size
_size is type of int64_t. Use int to store the value of _size
will cause value truncation.

Signed-off-by: Henry C Chang <henry.cy.chang@gmail.com>
2011-12-22 12:15:04 -08:00
Sage Weil
9eee1ecbee osd: remove SIGTERM cruft
The default handler will exit(0).  The got_sigterm stuff was dead code.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-21 14:21:37 -08:00
Sage Weil
e04109a368 mon: drop special SIGTERM handler
Default does exit(0).

Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-21 14:17:42 -08:00
Sage Weil
2daa655f02 mds: drop special SIGTERM handler
Default does exit(0).

Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-21 14:17:19 -08:00
Sage Weil
d1dbeaf59d exit(0) on SIGTERM by default
Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-21 14:17:00 -08:00
Sage Weil
dcedda84d0 Merge pull request #7 from kylemarsh/wip-obsync-swift-metadata
obsync: pull object metadata from swift store
2011-12-20 20:11:51 -08:00
Kyle Marsh
a85ab1eacc obsync: pull object metadata from swift store
Obsync wasn't pulling object metadata from swift stores and thus wasn't
syncing metadata when reading from a swift store.  This commit fixes that.
2011-12-20 17:08:21 -08:00
Yehuda Sadeh
3bea1ed4bd rgw: fix subuser key name when purging subuser keys 2011-12-20 11:39:32 -08:00
Yehuda Sadeh
9ddb802c72 radosgw-admin: add --purge-keys option 2011-12-20 11:00:39 -08:00
Josh Durgin
97dd28c0ce librados: return -EROFS when trying to write to a snapshot
operate_read doesn't need this check because it does not write.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-12-19 18:03:14 -08:00
Josh Durgin
68ba1862e8 librados: make getxattrs ENOMEM return negative
This is more consistent with the rest of librados.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-12-19 18:00:16 -08:00
Yehuda Sadeh
01f3f6a620 rgw: add timeout to init path 2011-12-19 16:01:18 -08:00
Samuel Just
cc22f1546d MOSDRepScrub,ReplicatedPG: Add scrub_to to MOSDRepScrub
When scrub_from is set, also set scrub_to to the primary's
last_update_applied (which will also be the official last_update before
finalizing scrub began).  The replica instead of waiting for
last_update_applied to catch up to last_update will wait for
last_update_applied to catch up to active_rep_scrub->scrub_to.  This
avoids a race where the replica scrub is requeued before all of the
currently queued sub-ops have been processed.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2011-12-19 14:57:11 -08:00
Sage Weil
2710bd8520 mon: update man page to document --mkfs stuff
Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-19 14:02:10 -08:00
Sage Weil
ed780fdd5e mds: misc assertions about truncation
Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-19 14:02:10 -08:00
Sage Weil
720bab94c8 osd: EINVAL on truncate to huge object size
Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-19 14:02:10 -08:00
Sage Weil
29e6d6c8c2 Merge pull request #6 from kylemarsh/wip-obsync-swift
Wip obsync swift
2011-12-19 14:00:59 -08:00
Yehuda Sadeh
33cb27961e rgw: remove temp context in prepare_get_obj 2011-12-19 13:57:15 -08:00
Yehuda Sadeh
5e7393352c rgw: fix xml parser internal structure leak 2011-12-19 13:57:08 -08:00
Yehuda Sadeh
a72348ea93 rgw: fix a leak of acl structure (in req_state) 2011-12-19 13:57:03 -08:00
Yehuda Sadeh
002eb5815e rgw: remove temp context in prepare_get_obj 2011-12-19 13:54:04 -08:00
Yehuda Sadeh
27da89f436 rgw: fix xml parser internal structure leak 2011-12-19 13:38:58 -08:00
Yehuda Sadeh
3a8af0f724 rgw: fix a leak of acl structure (in req_state) 2011-12-19 13:38:40 -08:00
Greg Farnum
42980922f2 Merge branch 'wip-osd-maybe-created' 2011-12-19 13:25:27 -08:00
Sage Weil
98a4809ad2 Merge branch 'wip-osd-fsid' 2011-12-19 13:24:46 -08:00
Sage Weil
3af5fff5e1 doc: fix typo
Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-19 13:24:31 -08:00
Sage Weil
dc977901c6 osd: --get-journal-fsid
Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-19 08:15:08 -08:00
Sage Weil
ae8fbb881a filejournal: uuid for fsid
Decode old header struct, but encode new class using more normal encoding
style.  Embed in a bufferlist for later extensibility.  Use the first
64 bits of the uuid for the per-entry magic, as before.

When we load an old fsid, we mirror the 64-bits.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-19 08:13:01 -08:00
Sage Weil
c8c5e5d6cc filestore: make fsid uuid_d instead of uint64_t
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-12-19 08:13:01 -08:00
Sage Weil
c59eb8ca33 osd: --get-osd-fsid and --get-cluster-fsid
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-12-19 08:12:11 -08:00
Sage Weil
a582209517 osd: store osd_fsid as text in osd_data dir
along with ceph_fsid (the cluster fsid) and a few other things.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-12-19 08:12:11 -08:00
Sage Weil
dcceb8e835 osd: include osd_fsid in OSDSuperblock
Generated during mkfs.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-12-19 08:12:11 -08:00
Sage Weil
237b19cd22 osd: rename OSDSuperblock::fsid -> cluster_fsid
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-12-19 08:12:10 -08:00
Sage Weil
cd909acaa4 doc: fix mon cluster expansion docs
Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-19 08:04:53 -08:00
Sage Weil
f2a9599062 mon: pull addr from ceph.conf, mon_host as needed when joining mon cluster
Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-19 08:03:59 -08:00
Sage Weil
d959334208 mon: fix setting of mon addr when joining a cluster
Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-19 07:57:45 -08:00
Yehuda Sadeh
37e7a52147 rgw: fix updating of object metadata
being used in swift POST. We were updating wrong object
size and etag
2011-12-16 22:21:19 -08:00
Yehuda Sadeh
44b4e02913 rgw: bucket cannot be recreated if already exists 2011-12-16 22:21:10 -08:00
Wido den Hollander
e5f49104ab man: Update the configuration example for radosgw
Signed-off-by: Wido den Hollander <wido@widodh.nl>
2011-12-16 22:15:47 -08:00
Wido den Hollander
83cf1b62fd man: It is capital -C instead of -c when for creating a new keyring
Signed-off-by: Wido den Hollander <wido@widodh.nl>
2011-12-16 22:15:40 -08:00
Yehuda Sadeh
3e323e6adb rgw: fix updating of object metadata
being used in swift POST. We were updating wrong object
size and etag
2011-12-16 22:04:43 -08:00
Yehuda Sadeh
08f968f8cd rgw: bucket cannot be recreated if already exists 2011-12-16 17:14:30 -08:00
Kyle Marsh
f54f4aa0e4 obsync: add authurl to CLI
s3 connections require the hostname and swift connections require the
authurl.  obsync treats these as equivalent internally, but breaks them
apart on the command line interface for clarity for the users.
2011-12-16 16:07:46 -08:00
Samuel Just
bfbde5b185 object.h: initialize max in hobject_t(sobject_t) constructor
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2011-12-16 14:42:36 -08:00
Samuel Just
061e7619aa ReplicatedPG: fix handle_watch_timeout ctx->at_version
ctx->at_version should match the head of the new log entries
during issue_repop.  This could cause the scrub hang bug as
last_update would be less than last_update_applied.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2011-12-16 12:41:15 -08:00
Samuel Just
5274e88d2c ReplicatedPG: add asserts to catch scrub error
If last_update_applied skipped over last_update, we would see
scrub hang.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2011-12-16 11:43:34 -08:00
Sage Weil
3f3913c9e7 doc: fix filename in mon addition process
Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-16 10:39:33 -08:00
Sage Weil
7d81a3b562 filejournal: preallocate journal bytes on create
This should reduce fragmentation for large journals that are written
slowly the first time around.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-16 09:19:59 -08:00
Sage Weil
92cb2a20f3 Merge pull request #5 from homac/master
Minor fix for init files and cleaned up spec file. Please pull
2011-12-16 09:08:17 -08:00
Josh Durgin
739fd9fee4 man: clarify mount.ceph auth options
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-12-15 14:03:00 -08:00