Enable libs3 support for debian packages
buffer: use int64_t instead of loff_t

Because portability.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
Merge pull request #916 from ceph/port/buffer

buffer: use int64_t instead of loff_t

Reviewed-by: Sage Weil <sage@inktank.com>
Merge pull request #460 from toabctl/build-depends

Enable libs3 support for debian packages

Reviewed-by: Sage Weil <sage@inktank.com>
packaging: erasure-code plugins go in /usr/lib/ceph

Install the plugins in /usr/lib/ceph/erasure-code instead of
/usr/lib/erasure-code to comply with FHS : "Applications may use a
single subdirectory under /usr/lib."

http://refspecs.linuxfoundation.org/FHS_2.3/fhs-2.3.html

The debian package is modified to install the plugins as part of the
ceph package which also ships rados-classes.

Signed-off-by: Loic Dachary <loic@dachary.org>
mon: add error message argument to prepare_new_pool

Add a stringstream argument to prepare_new_pool for the purpose of
recording human readable error message.

Signed-off-by: Loic Dachary <loic@dachary.org>
mon: erasure code pool properties defaults

If no properties are set when creating an erasure coded pool, default to
using the jerasure plugin with the cauchy_good technique which is the
fastest.

The defaults are set with osd_pool_default_erasure_code_properties which
is a json object. Using json allows for human readable messages if there
is a format error.

Signed-off-by: Loic Dachary <loic@dachary.org>
mon: unit test for osd pool create

It is inconvenient to run such tests in the
qa/workunits/cephtool/test.sh because they require that the mon is
restarted to test various errors in the format of the default and check
the appropriate error message is output.

Instead a single mon is run from sources using command line options and
a temporary directory, the same way vstart.sh does but more specialized.

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