http://tracker.ceph.com/issues/3074fixes#3074
The support of --help option is added through this patch.
By now, it displays the generic options usage used in radosgw.
Signed-off-by: Christophe Courtaut <christophe.courtaut@gmail.com>
function was referring bucket info object directly, instead of going
through helper functions, which is now a must.
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
When truncating a file, we should xlock the corresponding filelock.
(revoke any Fw caps from clients).
[note from sw: setattr on size also takes the filelock xlock.]
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Remove code for 'mds cluster_fail', 'osd tell', and auth_usage()
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Rather than making the caller code handle encode/decode/dump etc,
we introduce an RGWReplicaBounds struct which the RGWReplicaLogger classes
traffic in (instead of the string marker, utime_t time, and list of pairs of
items). Right now this is just referring to cls_replica_log internal structs,
but we use typedefs so that we can cleanly change them over later and avoid
crossing the namespaces too much.
This greatly reduces the amount of code in rgw_rest_replica_log -- hurrah!
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Signed-off-by: Greg Farnum <greg@inktank.com>
This needs to be cleaned up a bit as we don't actually want to
import rgw_common into ceph_json (we'll need to pull the parse_date
out of that and into somewhere more accessible/appropriate).
Signed-off-by: Greg Farnum <greg@inktank.com>
Match a symlink to a dir, not just dirs. This fixes the osd case of e.g.,
creating an osd in /data/osd$id in which ceph-disk makes a symlink from
/var/lib/ceph/osd/ceph-$id.
Fix proposed by Matt Thompson <matt.thompson@mandiant.com>; extended to
include the upstart users too.
Fixes: #5490
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
Handle the case where the device is a full disk. Make the partition
check a bit more robust (don't make assumptions about naming aside from
the device being a prefix of the partition).
Signed-off-by: Sage Weil <sage@inktank.com>
We already do this for Ops and LingerOps, but missed this when we added
CommandOps to the mix. The result is that an ill-timed mon disconnect will
leave a command map check (and thus the command) hanging.
This misbehavior was introduced when CommandOp was introduced, back in
commit 2e172225b0, and we failed to fix it
in 8808ca57c6.
Fixes: #5493
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
When reading object_info_t from an existing object attribute, the pool
may be < 0 and should be set to the pool containing the object. This is done
on the oi object on the stack but overriden later by:
obc->obs.oi.decode(bv);
This decode is superfluous and is removed so that it does not override
the modified value of the pool.
Signed-off-by: Loic Dachary <loic@dachary.org>
http://tracker.ceph.com/issues/5324fixes#5324
Explains operations dependency,
which is more important than the semantic.
Signed-off-by: Christophe Courtaut <christophe.courtaut@gmail.com>