unit tests for FileStore::_detect_fs when running on ext4

unit tests are added in test/filestore/store_test.cc for the
FileStore::_detect_fs method, when using ext4. It tests the following
situations:

 * without user_xattr, ext4 fails
 * mounted with user_xattr, ext4 fails if filestore_xattr_use_omap is false
 * mounted with user_xattr, ext4 succeeds if filestore_xattr_use_omap is true

The tests are grouped in an ext4 dedicated class

  TEST(EXT4StoreTest, _detect_fs)

The qa/workunits/filestore/filestore.sh script is added to prepare the
environment required for the unit tests ( create an image file,
formats it with ext4 etc.). It runs ceph_test_filestore with a sudo
to allow it to mount(2) and umount(2) the ext4 file system. It is
called with

  ceph_test_filestore --gtest_filter=EXT4StoreTest.*

to only run the ext4 dependent tests.

The filestore.sh script is meant to be used as part of teuthology
in order to increase the code coverage for src/os/FileStore.cc. It is
self tested and can be checked from the source directory with

  CEPH_TEST_FILESTORE=../../../src/ceph_test_filestore filestore.sh TEST

http://tracker.ceph.com/issues/4321 refs #4321

Signed-off-by: Loic Dachary <loic@dachary.org>
crush: return -1 on error from get_type_id

So we can distinguish between a bad type name and type 0.

Fix both callers, too.

Signed-off-by: Sage Weil <sage@inktank.com>
mon: generate useful error msgs for 'osd crush rule create-simple ...'

Signed-off-by: Sage Weil <sage@inktank.com>
ceph: add 'osd crush rule ...' to usage

Signed-off-by: Sage Weil <sage@inktank.com>
mon: allow leveldb logging

'mon leveldb log = filename'

Signed-off-by: Sage Weil <sage@inktank.com>
osd: optionally enable leveldb logging

Signed-off-by: Sage Weil <sage@inktank.com>
Clean up defer_recovery() functions

Signed-off-by: David Zafman <david.zafman@inktank.com>
rados: add whole-object 'clonedata' command

Clone the data stream from one object to another.

Signed-off-by: Sage Weil <sage@inktank.com>
doc/release-notes: I missed rgw rest api in the release notes

Mostly from here dd19d693e6528c70167958ebc57e075200a08803

Signed-off-by: Sage Weil <sage@inktank.com>
doc/start/get-involved: fix links

ERROR: /srv/autobuild-ceph/gitbuilder.git/build/doc/start/get-involved.rst:33: Unknown target name: "tracker".
ERROR: /srv/autobuild-ceph/gitbuilder.git/build/doc/start/get-involved.rst:43: Unknown target name: "support".

Signed-off-by: Sage Weil <sage@inktank.com>
doc/install/{debian,rpm}: update for cuttlefish

Signed-off-by: Sage Weil <sage@inktank.com>
fixed common typo in error messages

Signed-off-by: Daniel Gollub <d.gollub@telekom.de>
Implement 'config get <var>' for the admin socket

Signed-off-by: Wido den Hollander <wido@42on.com>
Fix whitespace indentation

Signed-off-by: Wido den Hollander <wido@42on.com>
Merge pull request #262 from gollub/typos

fixed common typo in error messages
doc: Fixed usage typo.

fixes: #4923

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

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

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
PG,OSD: mark info as backfilling in _remove_pg()

Signed-off-by: Samuel Just <sam.just@inktank.com>
OSD::clear_temp should clear snap mapper entries as well

Signed-off-by: Samuel Just <sam.just@inktank.com>