doc: Updated terminology. Added librados intro to index.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
doc: Added librados introduction doc. Still wip.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
doc: Modified doc examples to use rados_create2.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
doc: Added python example of handle, and closing session examples.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
Some suggested changes, both errors and rewordings

Python and C code examples tweaked a bit

Signed-off-by: Dan Mick <dan.mick@inktank.com>
doc: Adds Python to index and sets maxdepth to 2.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
doc: Added inline literal tag.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
doc: Added Python doc.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
ObjectCacher: remove max_bytes and max_ob arguments to trim()

These are never passed, so replace them with the defaults.

Backport: emperor, dumpling
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
ObjectCacher: use uint64_t for target and max values

All the options are uint64_t, but the ObjectCacher was converting them
to int64_t. There's never any reason for these to be negative, so
change the type.

Adjust a few conditionals so that they only convert known-positive
signed values to uint64_t before comparing with the target and max
values. Leave the actual stats accounting as loff_t for now, since
bugs in accounting will have bad effects if negative values wrap
around.

Backport: emperor, dumpling
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
librbd: remove limit on number of objects in the cache

The number of objects is not a significant indicated of when data
should be written out for rbd. Use the highest possible value for
number of objects and just rely on the dirty data limits to trigger
flushing. When the number of objects is low, and many start being
flushed before they accumulate many requests, it hurts average request
size and performance for many concurrent sequential writes.

Fixes: #7385
Backport: emperor, dumpling
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
ObjectCacher: remove unused target/max setters

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
doc: Adds additional terms for use with librados.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
doc: Incorporated feed back from Loic and Dan.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
Merge pull request #1199 from ceph/wip-doc-librados-intro

Wip doc librados intro

Reviewed-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Loic Dachary <loic@dachary.org>
Merge pull request #1215 from ceph/wip-7385

Remove the max cached objects restriction for librbd

Reviewed-by: Sage Weil <sage@inktank.com>
packaging: do not package libdir/ceph recursively

Package libdir/ceph non-recursively, to avoid duplicates, and
package libdir/ceph/ceph_common.sh explicitly.

Signed-off-by: Alexandre Oliva <oliva@gnu.org>
Signed-off-by: Ken Dreyer <ken.dreyer@inktank.com>
Merge pull request #1224 from kdreyer-inktank/packaging-libdir

packaging: do not package libdir/ceph recursively
mon/OSDMonitor: fix legacy tunables warning

Warn on legacy tunables, not on non-optimal tunables.  Optimal is a moving
target, but it is really the legacy defaults that we want to push people
off of.

Fixes: #7399
Signed-off-by: Sage Weil <sage@inktank.com>
mon: split prepare_command in two

So that it is possible to call prepare_command without a session
established and a cmdmap that has already been parsed.

Signed-off-by: Loic Dachary <loic@dachary.org>