upstart: rename ceph -> ceph-all

This avoids a conflict with the sysvinit job.

Signed-off-by: Sage Weil <sage@inktank.com>
upstart: fix radosgw upstart job

Signed-off-by: Sage Weil <sage@inktank.com>
mkcephfs: fix fs_type assignment typo

Reported-by: Matthew Via <via@matthewvia.info>
Signed-off-by: Sage Weil <sage@inktank.com>
client: Allow cap release timeout to be configured

The delay for releasing an inode's capability is
hardcoded to 5 seconds.  This patch takes the timeout
value from a config parameter, which defaults presently
to 5 seconds.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
release: add note about 'ceph osd create' syntax

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
rbd: remove block-by-block messages when exporting

Signed-off-by: Dan Mick <dan.mick@inktank.com>
HashIndex: fix list_by_hash handling of next->is_max()

get_path_str() should not handle hobject_t::get_max().  get_path_str()
now asserts that the passed object is not max and the callers now check
for is_max().  This caused HashIndex.cc to incorrectly scan an entire
collection before returning no objects rather than scanning the top
level and returning no objects.  It did not actually list_by_hash to
return an incorrect answer, however.

Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
librados: watch() should set the WRITE flag on the op

This caused a bug where the watch operation bypassed the is_degraded()
check in the write path and the repop got sent to the replica where the
replica crashed due to the is_missing() assert in sub_op_modify.

Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Merge branch 'testing' into next
mon: Monitor: rework 'paxos' to a list instead of a vector

After adding the gv patches, during Monitor::recovered_leader() we started
waking up contexts following the order of the 'paxos' vector. However,
given that the mdsmon has a forgotten dependency on the osdmon paxos
machine, we were incurring in a situation in which we proposed a value
through the osdmon before creating a new pending value (but by being
active, the mdsmon would go through with it nonetheless).

This is easily fixed by making sure that the mdsmon callbacks are only
awaken *after* the osdmon has been taken care of.

Fixes: #3495

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
mon: PGMonitor: erase entries from 'creating_pgs_by_osd' when set is empty

This patch avoids sending empty MOSDPGCreate's every tick.

Fixes: #3571

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
librbd: bump version for new functions

copy2, clone2, and create3 are new.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
librbd: clean up after errors in create

Split format 1 and 2 image creation into separate functions for better
readability. Format 2 requires more error handling.

Fixes: #2677
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
librbd: change internal order parameter to pass-by-value

It doesn't change in any of these places.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
Merge branch 'next'

Merge of wip-rbd-create:
Reviewed-by: Dan Mick <dan.mick@inktank.com>
doc: inverted the steps per doc feedback.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
doc: Moved sudo to before ssh instead of before tee.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
doc: Added sudo to the service start command.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
Merge branch 'master' of https://github.com/ceph/ceph
Merge git://github.com/ceph/ceph