| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |
| | |
| | |
| | | |
Signed-off-by: Myoungwon Oh <omwmw@sk.com>
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
librados: fix buffer overflow for aio_exec python binding
Reviewed-by: Kefu Chai <kchai@redhat.com>
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
aio_exec returns ERANGE if provided buffer is not enough.
Fixes: https://tracker.ceph.com/issues/23964
Signed-off-by: Aleksei Gutikov <aleksey.gutikov@synesis.ru>
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
librados: use ceph::async::Completion for asio bindings
Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Casey Bodley <cbodley@redhat.com>
|
| |_|_|/
|/| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
We want to switch to an addrvec. This requires multiple parts:
- switch the Key type to use just the rank
- separate entity_name_t rank
- compat encoding
- graylog field naming has changed (includes name)
- syslog output formatting has changed (includes name)
- LogEntry operator<< modified a bit
Signed-off-by: Sage Weil <sage@redhat.com>
|
| |_|/
|/| |
| | |
| | | |
Signed-off-by: Kefu Chai <kchai@redhat.com>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Dan Mick <dan.mick@redhat.com>
|
| | |
| | |
| | |
| | |
| | |
| | | |
Fixes: http://tracker.ceph.com/issues/23966
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit cc06fbab08ef5b7f1b18f2af333c019ad86de03d)
|
|/ /
| |
| |
| |
| |
| | |
Fixes: http://tracker.ceph.com/issues/23966
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit fcd414f6324136ce0695fcf30a60eec6ff338a98)
|
|\ \
| | |
| | |
| | |
| | | |
librados: return ENOENT if pool_id invalid
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Li Wang <laurence.liwang@gmail.com>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Li Wang <laurence.liwang@gmail.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
because the mgrclient will be waiting for the mgrmap if the mgrmap
is not available, when the client is about to send a mgr command.
and monitor will drop the subscription requests if the client does not
have enough cap for reading mon, so unlike mon commands, the client
won't get an EACCES return code in this case.
in this change, a timeout machinary is introduced. and the client
will wait for "rados-mon-op-timeout" before it gives up. if this
setting is 0, it will wait forever.
Fixes: https://tracker.ceph.com/issues/23627
Signed-off-by: Kefu Chai <kchai@redhat.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This wasn't taking the MonClient lock: should use
with_monmap to protect access to MonClient::monmap.
Signed-off-by: John Spray <john.spray@redhat.com>
|
| | |
| | |
| | |
| | | |
Signed-off-by: John Spray <john.spray@redhat.com>
|
|\ \ \
| |_|/
|/| |
| | |
| | | |
librados: Reject the invalid pool create request at client side, rath…
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
|
| | |
| | |
| | |
| | |
| | |
| | | |
the mon side
Signed-off-by: Yang Honggang <yanghonggang@umcloud.com>
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | | |
cmake,make-dist: bump up boost version to 1.67
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
|
| | |/
| |/|
| | |
| | |
| | |
| | |
| | |
| | | |
* to pick up the fix of https://svn.boost.org/trac10/ticket/11622
* also the boost::python's library name now includes the version suffix
of python version, so update BuildBoost.cmake accordingly.
Signed-off-by: Kefu Chai <kchai@redhat.com>
|
|\ \ \
| |/ /
|/| |
| | |
| | | |
librados: add OPERATION_ORDERSNAP flag and yet another aio_operate method
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
|
| | |
| | |
| | |
| | |
| | |
| | | |
(allow to specify both flags and snap context)
Signed-off-by: Mykola Golub <mgolub@suse.com>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Mykola Golub <mgolub@suse.com>
|
| |/
|/|
| |
| | |
Signed-off-by: Myoungwon Oh <omwmw@sk.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Librados C API functions that operate on OMAP accept key values that
are NUL-terminated. This makes them unsuitable for operation on keys
that have NULs embedded in them (like those produced by librbd).
This commit adds new API functions:
- rados_omap_get_next2
- rados_write_op_omap_cmp2
- rados_write_op_omap_set2
- rados_write_op_omap_rm_keys2
- rados_read_op_omap_cmp2
- rados_read_op_omap_get_vals_by_keys2
that accept or provide actual key length in bytes and therefore are not
limiting key values to first NUL encountered.
Signed-off-by: Piotr Dałek <piotr.dalek@corp.ovh.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Common_init_finish does start_service_thread and does
set_safe_to_start_threads() on the cct, which switches us to 'runtime'
mode where we can't accept many config options. Do that *after* we fetch
our config from the mon so that we can accept+set runtime options (and
not complain to stderr about it).
Signed-off-by: Sage Weil <sage@redhat.com>
|
| |
| |
| |
| | |
Signed-off-by: Sage Weil <sage@redhat.com>
|
| |
| |
| |
| |
| |
| | |
A few callers are explicitly parsing args from the environment.
Signed-off-by: Sage Weil <sage@redhat.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This is not particularly efficient, but it works:
- connect to the monitor to get the monmap and config
- tear it all down
- proceed with normal startup (which presumably involves reconnecting
to the mon all over again).
This allows us to set config options that may affect the mon communication
itself, like ms_type.
Signed-off-by: Sage Weil <sage@redhat.com>
|
| |
| |
| |
| |
| |
| | |
Instead treat the diff as a full-object delta.
Signed-off-by: Mykola Golub <mgolub@suse.com>
|
|/
|
|
|
| |
Fixes: http://tracker.ceph.com/issues/22413
Signed-off-by: Kefu Chai <kchai@redhat.com>
|
|\
| |
| |
| |
| | |
rados: clean up rados_getxattrs() and rados_striper_getxattrs()
Reviewed-by: Sage Weil <sage@redhat.com>
|
| |
| |
| |
| | |
Signed-off-by: Gu Zhongyan <guzhongyan@360.cn>
|
|/
|
|
|
|
|
|
|
|
|
|
| |
Invalid free() can cause corruption when getting an object
attribute with empty value.
Check the validity of the pointer before free(). Also move
the free() call at the start of rados_getxattrs_next() to
avoid memory leak.
Fixes: http://tracker.ceph.com/issues/22042
Signed-off-by: Gu Zhongyan <guzhongyan@360.cn>
|
|
|
|
| |
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
|
|\
| |
| |
| |
| | |
rados: use WaitInterval()'s return value instead of manual timing
Reviewed-by: Sage Weil <sage@redhat.com>
|
| |
| |
| |
| | |
Signed-off-by: Mohamad Gebai <mgebai@suse.com>
|
|\ \
| |/
|/|
| |
| | |
osd, librados: add a rados op (TIER_PROMOTE)
Reviewed-by: Sage Weil <sage@redhat.com>
|
| |
| |
| |
| | |
Signed-off-by: Myoungwon Oh <omwmw@sk.com>
|
|/
|
|
| |
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
|
|
|
|
|
|
| |
This is a portion of the namespace project.
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Defines asynchronous librados operations that satisfy all of the
"Requirements on asynchronous operations" imposed by the C++ Networking
TS [1] in section 13.2.7. These operations are implemented in terms of
boost::asio, but the interfaces themselves are free of boost types -
this makes the transition to std::net trivial when it's available.
These interfaces conform to the Extensible Asynchronous Model [2] that
originated in boost::asio. This model allows the last 'handler' argument
to either be a callback that gets the result, a coroutine yield_context
that will suspend until completion, or a 'use_future' tag to request the
result in a std::future (see the unit tests for examples of each). The
'Extensible' part also enables further integration with new frameworks.
For now, only async_read(), async_write(), and the read/write variants
of async_operate() are provided.
[1] Working Draft, C++ Extensions for Networking
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/n4711.pdf
[2] "Library Foundations for Asynchronous Operations"
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3896.pdf
Signed-off-by: Casey Bodley <cbodley@redhat.com>
|
|
|
|
| |
Signed-off-by: Kefu Chai <kchai@redhat.com>
|
|
|
|
|
|
| |
... and add some basic eventtrace calls to librbd module
Signed-off-by: Mahati Chamarthy <mahati.chamarthy@intel.com>
|
|\
| |
| |
| |
| | |
osd,librados: add manifest, operations for chunked object
Reviewed-by: Sage Weil <sage@redhat.com>
|
| |
| |
| |
| | |
Signed-off-by: Myoungwon Oh <omwmw@sk.com>
|
|\ \
| | |
| | |
| | |
| | | |
osd,mgrclient: pass daemon_status by rvalue ref and other cleanups
Reviewed-by: John Spray <john.spray@redhat.com>
|
| |/
| |
| |
| | |
Signed-off-by: Kefu Chai <kchai@redhat.com>
|
|/
|
|
|
|
| |
rados_a is librados.a, which is not neeeded anymore.
Signed-off-by: Kefu Chai <kchai@redhat.com>
|
|
|
|
|
|
|
| |
instead of using "-fvisibility=hidden -fvisibility-inlines-hidden", more
cmake-ish this way.
Signed-off-by: Kefu Chai <kchai@redhat.com>
|