]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
9 years agoos/memstore: return empty list if offset overflows 7445/head
xie xingguo [Sat, 30 Jan 2016 09:02:08 +0000 (17:02 +0800)]
os/memstore: return empty list if offset overflows

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoos/memstore: fix wrong blocksize for statfs
xie xingguo [Sat, 30 Jan 2016 08:59:42 +0000 (16:59 +0800)]
os/memstore: fix wrong blocksize for statfs

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoMerge pull request #7404 from sahithi-rv/Mutex
Josh Durgin [Fri, 29 Jan 2016 23:14:57 +0000 (15:14 -0800)]
Merge pull request #7404 from sahithi-rv/Mutex

rbd_fuse: replaced pthread_mutex*() functions with ceph Mutex wrapper

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #6131 from rzarzynski/wip-admincreds-in-s3-keystone
Yehuda Sadeh [Fri, 29 Jan 2016 17:28:41 +0000 (09:28 -0800)]
Merge pull request #6131 from rzarzynski/wip-admincreds-in-s3-keystone

rgw: support admin credentials in S3-related Keystone authentication.

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: support admin credentials in S3-related Keystone authentication. 6131/head
Radoslaw Zarzynski [Fri, 29 Jan 2016 11:14:41 +0000 (12:14 +0100)]
rgw: support admin credentials in S3-related Keystone authentication.

Fixes: #13302
Backport: infernalis, hammer
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agoMerge pull request #7298 from racpatel/wip-doc-rac2
Loic Dachary [Fri, 29 Jan 2016 14:44:42 +0000 (21:44 +0700)]
Merge pull request #7298 from racpatel/wip-doc-rac2

doc :- fixing image in section ERASURE CODING

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agocmake: musl libc does not implement backtrace. Added feature check and fallback to...
John Coyle [Thu, 15 Oct 2015 02:54:05 +0000 (22:54 -0400)]
cmake: musl libc does not implement backtrace. Added feature check and fallback to libexecinfo.

Signed-off-by: John Coyle <dx9err@gmail.com>
9 years agoMerge pull request #7264 from ceph/wip-doc-RGW
Sage Weil [Fri, 29 Jan 2016 13:50:07 +0000 (08:50 -0500)]
Merge pull request #7264 from ceph/wip-doc-RGW

doc: rgw: port changes from downstream to upstream

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #7244 from mikulely/fix-authtool-doc
Sage Weil [Fri, 29 Jan 2016 13:49:17 +0000 (08:49 -0500)]
Merge pull request #7244 from mikulely/fix-authtool-doc

doc: remove redundant space in ceph-authtool/monmaptool doc

9 years agodoc: Updated the RPM section for RHEL and CentOS
ritz303 [Thu, 14 Jan 2016 18:40:19 +0000 (12:40 -0600)]
doc: Updated the RPM section for RHEL and CentOS

Fixes: #10245
Signed-off-by: Aron Gunn <ritz_303@yahoo.com>
9 years agoMerge pull request #7027 from mathslinux/fix-s3-csharp-doc
Sage Weil [Fri, 29 Jan 2016 13:46:47 +0000 (08:46 -0500)]
Merge pull request #7027 from mathslinux/fix-s3-csharp-doc

doc: fix S3 C# example

9 years agoMerge pull request #7000 from zhouyuan/fix_cache_tier_doc
Sage Weil [Fri, 29 Jan 2016 13:46:15 +0000 (08:46 -0500)]
Merge pull request #7000 from zhouyuan/fix_cache_tier_doc

doc: fix misleading configuration guide on cache tiering

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #6930 from wido/rgw-key-docs
Sage Weil [Fri, 29 Jan 2016 13:45:16 +0000 (08:45 -0500)]
Merge pull request #6930 from wido/rgw-key-docs

doc: use 'ceph auth get-or-create' for creating RGW keyring

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7384 from wido/mirroring
Sage Weil [Fri, 29 Jan 2016 13:43:31 +0000 (08:43 -0500)]
Merge pull request #7384 from wido/mirroring

doc: script and guidelines for mirroring Ceph

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
9 years agoMerge pull request #7435 from xiexingguo/xxg-wip-14561
Sage Weil [Fri, 29 Jan 2016 13:39:39 +0000 (08:39 -0500)]
Merge pull request #7435 from xiexingguo/xxg-wip-14561

osd: BlueStore: fix null pointer access

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7271 from somnathr/wip-transaction-delete
Sage Weil [Fri, 29 Jan 2016 13:33:28 +0000 (08:33 -0500)]
Merge pull request #7271 from somnathr/wip-transaction-delete

osd: avoid heap allocations for ObjectStore::Transaction

http://pulpito.ceph.com/sage-2016-01-28_12:50:51-rados-wip-sage-testing3---basic-mira/

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #6440 from stiopaa1/scrubbingInfo
Sage Weil [Fri, 29 Jan 2016 13:29:23 +0000 (08:29 -0500)]
Merge pull request #6440 from stiopaa1/scrubbingInfo

mon: warn if pg(s) not scrubbed

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: David Zafman <dzafman@redhat.com>
9 years agoMerge pull request #7075 from shun-s/shun-fix
Sage Weil [Fri, 29 Jan 2016 13:28:30 +0000 (08:28 -0500)]
Merge pull request #7075 from shun-s/shun-fix

global: do not start two daemons with a single pid-file

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #7111 from chenji-kael/master
Sage Weil [Fri, 29 Jan 2016 13:28:03 +0000 (08:28 -0500)]
Merge pull request #7111 from chenji-kael/master

osd: FileStore: print file name before osd assert if read file failed

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7268 from ifed01/wip-14400
Sage Weil [Fri, 29 Jan 2016 13:27:13 +0000 (08:27 -0500)]
Merge pull request #7268 from ifed01/wip-14400

common: snappy decompressor may assert when handling segmented input bufferlist

Reviewed-by: Haomai Wang <haomai@xsky.com>
9 years agoMerge pull request #7276 from caibo2014/fix-messager-null
Sage Weil [Fri, 29 Jan 2016 13:26:39 +0000 (08:26 -0500)]
Merge pull request #7276 from caibo2014/fix-messager-null

mon/MonClient: avoid null pointer error when configured incorrectly

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7330 from ifed01/wip-pool-stat-cleanup
Sage Weil [Fri, 29 Jan 2016 13:26:05 +0000 (08:26 -0500)]
Merge pull request #7330 from ifed01/wip-pool-stat-cleanup

librados: remove duplicate definitions for rados pool_stat_t and cluster_stat_t

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #7340 from ceph/wip-portable-time
Sage Weil [Fri, 29 Jan 2016 13:25:36 +0000 (08:25 -0500)]
Merge pull request #7340 from ceph/wip-portable-time

common: ake ceph_time clocks work under BSD

Reviewed-by: Erwan Velu <erwan@redhat.com>
9 years agoMerge pull request #7341 from songbaisen/song7
Sage Weil [Fri, 29 Jan 2016 13:24:46 +0000 (08:24 -0500)]
Merge pull request #7341 from songbaisen/song7

mon: consider the pool size when setting pool crush rule

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7355 from yuanjingkai/master
Sage Weil [Fri, 29 Jan 2016 13:24:04 +0000 (08:24 -0500)]
Merge pull request #7355 from yuanjingkai/master

os/fs: fix io_getevents argument

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #7348 from xiexingguo/xxg-wip-14484
Sage Weil [Fri, 29 Jan 2016 13:23:23 +0000 (08:23 -0500)]
Merge pull request #7348 from xiexingguo/xxg-wip-14484

osd: BlueStore: fix space leak

http://pulpito.ceph.com/sage-2016-01-27_18:39:48-rados-wip-sage-testing---basic-smithi/

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7368 from somnathr/wip-jemalloc-build
Sage Weil [Fri, 29 Jan 2016 13:22:55 +0000 (08:22 -0500)]
Merge pull request #7368 from somnathr/wip-jemalloc-build

build: allow jemalloc enabled build with rocksdb-static

http://pulpito.ceph.com/sage-2016-01-27_18:39:48-rados-wip-sage-testing---basic-smithi/

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoBlueStore: fix null pointer access 7435/head
xie xingguo [Fri, 29 Jan 2016 13:07:39 +0000 (21:07 +0800)]
BlueStore: fix null pointer access

Fixes: #14561
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agorbd_fuse:replaced pthread_mutex*() functions with ceph Mutex wrapper 7404/head
Sahithi R V [Thu, 28 Jan 2016 17:46:25 +0000 (23:16 +0530)]
rbd_fuse:replaced pthread_mutex*() functions with ceph Mutex wrapper

Signed-off-by: Sahithi R V <tansy.rv@gmail.com>
9 years agoMerge remote-tracking branch 'origin/greg-fs-testing-126' 7282/head
Greg Farnum [Fri, 29 Jan 2016 05:28:48 +0000 (21:28 -0800)]
Merge remote-tracking branch 'origin/greg-fs-testing-126'

9 years agoMerge remote-tracking branch 'origin/jewel'
Greg Farnum [Fri, 29 Jan 2016 05:28:37 +0000 (21:28 -0800)]
Merge remote-tracking branch 'origin/jewel'

9 years agoMerge pull request #7312 from jcsp/wip-14365
Gregory Farnum [Fri, 29 Jan 2016 05:28:54 +0000 (21:28 -0800)]
Merge pull request #7312 from jcsp/wip-14365

mds, client: fix locking around handle_conf_change

Reviewed-by: Yan, Zheng <zyan@redhat.com>
9 years agoMerge pull request #7297 from ukernel/jewel-13903
Gregory Farnum [Fri, 29 Jan 2016 05:28:09 +0000 (21:28 -0800)]
Merge pull request #7297 from ukernel/jewel-13903

client: properly trim unlinked inode

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agoMerge pull request #7262 from ukernel/jewel-14380
Gregory Farnum [Fri, 29 Jan 2016 05:26:06 +0000 (21:26 -0800)]
Merge pull request #7262 from ukernel/jewel-14380

Be more careful about the "mds setmap" command to prevent breakage.

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #7369 from mauri/fix-message-typo
Jason Dillaman [Fri, 29 Jan 2016 03:25:19 +0000 (22:25 -0500)]
Merge pull request #7369 from mauri/fix-message-typo

rbd: fix error message typo

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #7387 from theanalyst/fix/gitignore
Kefu Chai [Fri, 29 Jan 2016 02:00:20 +0000 (10:00 +0800)]
Merge pull request #7387 from theanalyst/fix/gitignore

remove unused src/messages/#MOSDOp.h# file

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #7345 from x11562/rbd_snap_rename
Josh Durgin [Thu, 28 Jan 2016 17:05:00 +0000 (09:05 -0800)]
Merge pull request #7345 from x11562/rbd_snap_rename

rbd: add "--dest-snap" optional for snap rename

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #7393 from tchaikov/wip-cmake
Kefu Chai [Thu, 28 Jan 2016 16:43:38 +0000 (00:43 +0800)]
Merge pull request #7393 from tchaikov/wip-cmake

fix the autotools and cmake build (the new fusestore needs libfuse)

Reviewed-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
9 years agoMerge pull request #7403 from rzarzynski/wip-rgw-dumpconlen-cosmetics
Orit Wasserman [Thu, 28 Jan 2016 16:30:52 +0000 (17:30 +0100)]
Merge pull request #7403 from rzarzynski/wip-rgw-dumpconlen-cosmetics

rgw: cosmetic improvements in dump_content_length()

9 years agorgw: cosmetic improvements in dump_content_length(). 7403/head
Radoslaw Zarzynski [Thu, 28 Jan 2016 16:19:56 +0000 (17:19 +0100)]
rgw: cosmetic improvements in dump_content_length().

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agoceph-objectstore-tool: disable fuse support if !HAVE_LIBFUSE 7393/head
Kefu Chai [Thu, 28 Jan 2016 12:43:45 +0000 (20:43 +0800)]
ceph-objectstore-tool: disable fuse support if !HAVE_LIBFUSE

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoosd: disable FuseStore if !HAVE_LIBFUSE
Kefu Chai [Thu, 28 Jan 2016 09:45:30 +0000 (17:45 +0800)]
osd: disable FuseStore if !HAVE_LIBFUSE

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agomake: disable FuseStore if !WITH_FUSE
Kefu Chai [Thu, 28 Jan 2016 09:23:23 +0000 (17:23 +0800)]
make: disable FuseStore if !WITH_FUSE

* configure.ac: "#define HAVE_LIBFUSE" if libfuse is found
* os/Makefile.am: do not compile FuseStore.cc if libfuse is not found

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: link against libfuse if HAVE_LIBFUSE
Kefu Chai [Thu, 28 Jan 2016 06:47:07 +0000 (14:47 +0800)]
cmake: link against libfuse if HAVE_LIBFUSE

* use ${FUSE_LIBRARIES} instead of "fuse" when referencing libfuse.
* do not compile FuseStore.cc if !HAVE_LIBFUSE.
* CMakeLists.txt: s/HAVE_FUSE/HAVE_LIBFUSE/, to match with the one
  defined for config.h.in.cmake, otherwise we need two vars:
  HAVE_LIBFUSE, and HAVE_FUSE

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: remove the copyright of FindSnappy.cmake
Kefu Chai [Thu, 28 Jan 2016 07:04:40 +0000 (15:04 +0800)]
cmake: remove the copyright of FindSnappy.cmake

as we've basically removed all the HyperTable code.

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoScript and Guidelines for mirroring Ceph 7384/head
Wido den Hollander [Fri, 18 Dec 2015 15:40:38 +0000 (16:40 +0100)]
Script and Guidelines for mirroring Ceph

This commit introduces a script which admins can use to mirror
the Ceph packages to their local systems.

With this script they can easily sync from a mirror local to them.

The README explains user on how and when to sync the sources and
how they can become a official mirror for Ceph.

Signed-off-by: Wido den Hollander <wido@42on.com>
9 years agoMerge pull request #6875 from dx9/wip-cmake-ccache
Kefu Chai [Thu, 28 Jan 2016 07:35:16 +0000 (15:35 +0800)]
Merge pull request #6875 from dx9/wip-cmake-ccache

cmake: support ccache via a WITH_CCACHE build option

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agorbd: simplify snap rename arguments 7345/head
x11562 [Tue, 26 Jan 2016 05:52:46 +0000 (13:52 +0800)]
rbd: simplify snap rename arguments

Signed-off-by: Na Xie <xie.na@h3c.com>
9 years agoMerge pull request #7337 from clever215/rbd_nbd
Josh Durgin [Wed, 27 Jan 2016 22:47:56 +0000 (14:47 -0800)]
Merge pull request #7337 from clever215/rbd_nbd

rbd-nbd: Add an argument validation for nbds_max

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #7385 from trociny/fix-journal-flush-commit-position
Josh Durgin [Wed, 27 Jan 2016 22:45:49 +0000 (14:45 -0800)]
Merge pull request #7385 from trociny/fix-journal-flush-commit-position

journal: flush commit position on metadata shutdown

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #7382 from dillaman/wip-14510
Josh Durgin [Wed, 27 Jan 2016 22:44:59 +0000 (14:44 -0800)]
Merge pull request #7382 from dillaman/wip-14510

librbd: block maintenance ops until after journal is ready

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoOSD: Deleting transaction object right after applying transaction 7271/head
Somnath Roy [Mon, 18 Jan 2016 19:48:24 +0000 (14:48 -0500)]
OSD: Deleting transaction object right after applying transaction

Presently, the transaction object is been deleted by the Finisher
thread asynchronously. In heavy load scenario specially if we
unleash journal throttle more, we are seeing high memory usage by
the OSDs because of this. In this new scheme, with the help of
move semantics transaction objects will be deleted synchronously
from the filestore worker threads. We are seeing very much
controllable memory growth now as well as ~3 to 4% cpu usage
benefit because of some reduction of 'new' , 'delete' calls.

Signed-off-by: Somnath Roy <somnath.roy@sandisk.com>
9 years agoMerge pull request #7259 from trociny/wip-14264
Josh Durgin [Wed, 27 Jan 2016 22:35:13 +0000 (14:35 -0800)]
Merge pull request #7259 from trociny/wip-14264

librbd: API: async open and close

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #7302 from dillaman/wip-14434
Josh Durgin [Wed, 27 Jan 2016 22:34:57 +0000 (14:34 -0800)]
Merge pull request #7302 from dillaman/wip-14434

librbd: journal shut down flush race condition

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #7299 from dillaman/wip-librbd-update-features
Josh Durgin [Wed, 27 Jan 2016 22:34:43 +0000 (14:34 -0800)]
Merge pull request #7299 from dillaman/wip-librbd-update-features

librbd: fix internal handling of dynamic feature updates

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agogitignore: ignore backup files from editors etc. 7387/head
Abhishek Lekshmanan [Wed, 27 Jan 2016 22:23:18 +0000 (23:23 +0100)]
gitignore: ignore backup files from editors etc.

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
9 years agoremove unused source file
Abhishek Lekshmanan [Wed, 27 Jan 2016 22:16:00 +0000 (23:16 +0100)]
remove unused source file

This file was possibly accidentally committed in the tree, thanks
@BranchPredictor for bringing this up in irc

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
9 years agoMerge pull request #7381 from ceph/wip-rgw-static-website-yehuda
Yehuda Sadeh [Wed, 27 Jan 2016 20:36:35 +0000 (12:36 -0800)]
Merge pull request #7381 from ceph/wip-rgw-static-website-yehuda

RGW static website feature
 - currently disabled by default
 - partial error page handling
 - a few known failures

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
Reviewed-by: Robin H. Johnson <robin.johnson@dreamhost.com>
9 years agojournal: flush commit position on metadata shutdown 7385/head
Mykola Golub [Sun, 24 Jan 2016 10:26:36 +0000 (12:26 +0200)]
journal: flush commit position on metadata shutdown

A crash was observed on JournalTrimmer destroy, which was called
by the Journaler after metadata shutdown. JournalTrimmer destructor
also calls flush_commit_position, but at that time metadata m_timer
is already null and it crushed there.

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agoMerge pull request #7223 from liewegas/wip-collection-handles
Sage Weil [Wed, 27 Jan 2016 19:45:11 +0000 (14:45 -0500)]
Merge pull request #7223 from liewegas/wip-collection-handles

osd: collection handles

Reviewed-by: Casey Bodley <cbodley@redhat.com>
9 years agoMerge pull request #7134 from liewegas/wip-fusestore
Sage Weil [Wed, 27 Jan 2016 19:39:21 +0000 (14:39 -0500)]
Merge pull request #7134 from liewegas/wip-fusestore

osd: implement fuse interface for ObjectStore

Reviewed-by: Samuel Just <sjust@redhat.com>
9 years agoosd: use collection handle where possible 7223/head
Sage Weil [Mon, 18 Jan 2016 16:10:05 +0000 (11:10 -0500)]
osd: use collection handle where possible

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoosd: associate a CollectionHandle& with PGBackend
Sage Weil [Mon, 18 Jan 2016 17:43:11 +0000 (12:43 -0500)]
osd: associate a CollectionHandle& with PGBackend

Make this a ref to the PG's handle because the backend is
constructed before the handle is opened.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoosd: associate a CollectionHandle with each PG
Sage Weil [Mon, 18 Jan 2016 16:07:28 +0000 (11:07 -0500)]
osd: associate a CollectionHandle with each PG

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/memstore: implement handle-based read methods
Sage Weil [Mon, 18 Jan 2016 16:05:51 +0000 (11:05 -0500)]
os/memstore: implement handle-based read methods

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/memstore: implement open_collection
Sage Weil [Mon, 18 Jan 2016 16:05:32 +0000 (11:05 -0500)]
os/memstore: implement open_collection

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: implement CollectionHandle based read methods
Sage Weil [Mon, 18 Jan 2016 16:05:00 +0000 (11:05 -0500)]
os/bluestore: implement CollectionHandle based read methods

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: implement open_collection
Sage Weil [Mon, 18 Jan 2016 16:04:41 +0000 (11:04 -0500)]
os/bluestore: implement open_collection

Fix up create and remove so that they poison a Collection that
gets removed.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/ObjectStore: add CollectionHandle wrappers for all read ops
Sage Weil [Mon, 18 Jan 2016 14:36:36 +0000 (09:36 -0500)]
os/ObjectStore: add CollectionHandle wrappers for all read ops

The backend can optionally implement the handle-based variant. If
it does not, the wrappers will call the legacy coll_t version.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/ObjectStore: add CollectionHandle
Sage Weil [Mon, 18 Jan 2016 14:36:02 +0000 (09:36 -0500)]
os/ObjectStore: add CollectionHandle

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agolibrbd: block maintenance until after journal is ready 7382/head
Jason Dillaman [Wed, 27 Jan 2016 19:14:28 +0000 (14:14 -0500)]
librbd: block maintenance until after journal is ready

Ops were already blocked when the requests were received via
watch/notify.  Requests are now blocked for local requests as
well.

Fixes: #14510
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge branch 'wip-rgw-static-website-yehuda' 7381/head
Yehuda Sadeh [Wed, 27 Jan 2016 19:07:43 +0000 (11:07 -0800)]
Merge branch 'wip-rgw-static-website-yehuda'

Conflicts:
src/rgw/rgw_common.h
src/rgw/rgw_op.h
src/rgw/rgw_rest_s3.cc
src/rgw/rgw_rest_s3.h

9 years agoos/FuseStore: improve readdir for omap and attr 7134/head
Sage Weil [Fri, 15 Jan 2016 00:24:59 +0000 (19:24 -0500)]
os/FuseStore: improve readdir for omap and attr

Use new-style fuse readdir interface for omap and attr.  We aren't
particularly efficient, but we won't completely break if there are a
lot of attrs or omap entries.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/FuseStore: wait for commit and flush in all updates
Sage Weil [Fri, 15 Jan 2016 00:17:53 +0000 (19:17 -0500)]
os/FuseStore: wait for commit and flush in all updates

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/FuseStore: use offset for readdir
Sage Weil [Thu, 14 Jan 2016 16:32:15 +0000 (11:32 -0500)]
os/FuseStore: use offset for readdir

This allows us to list large directories.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoqa/workunits/objectstore/test_fuse.sh: simple workunit test
Sage Weil [Thu, 14 Jan 2016 13:45:38 +0000 (08:45 -0500)]
qa/workunits/objectstore/test_fuse.sh: simple workunit test

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/FuseStore: add 'type' file in root dir
Sage Weil [Thu, 7 Jan 2016 18:12:58 +0000 (13:12 -0500)]
os/FuseStore: add 'type' file in root dir

This also acts as a sentinel to indicate whether we have mounted.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/ObjectStore: add get_type()
Sage Weil [Thu, 7 Jan 2016 18:12:14 +0000 (13:12 -0500)]
os/ObjectStore: add get_type()

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoceph-objectstore-tool: drop filestore-specific sanity check
Sage Weil [Thu, 7 Jan 2016 18:04:52 +0000 (13:04 -0500)]
ceph-objectstore-tool: drop filestore-specific sanity check

Just let mount() fail

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoceph-objectstore-tool: add --op mkfs
Sage Weil [Thu, 7 Jan 2016 18:04:27 +0000 (13:04 -0500)]
ceph-objectstore-tool: add --op mkfs

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoceph-objectstore-tool: simplify error message
Sage Weil [Thu, 7 Jan 2016 18:04:09 +0000 (13:04 -0500)]
ceph-objectstore-tool: simplify error message

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoceph-objectstore-tool: 'whoami' is not required for an ObjectStore
Sage Weil [Thu, 7 Jan 2016 18:03:59 +0000 (13:03 -0500)]
ceph-objectstore-tool: 'whoami' is not required for an ObjectStore

OSD creates it, but it won't be there if we did --op mkfs

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/FuseStore: do not call exists() on an out-of-bounds oid
Sage Weil [Thu, 7 Jan 2016 17:51:03 +0000 (12:51 -0500)]
os/FuseStore: do not call exists() on an out-of-bounds oid

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/FuseStore: no-op chmod
Sage Weil [Thu, 7 Jan 2016 17:48:55 +0000 (12:48 -0500)]
os/FuseStore: no-op chmod

This makes mkdir(1) happy.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/FuseStore: allow object and collection creates
Sage Weil [Thu, 7 Jan 2016 17:39:54 +0000 (12:39 -0500)]
os/FuseStore: allow object and collection creates

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/FuseStore: more ENOENT on getattr for non-existent items
Sage Weil [Thu, 7 Jan 2016 15:47:28 +0000 (10:47 -0500)]
os/FuseStore: more ENOENT on getattr for non-existent items

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/FuseStore: hide bitwise_hash_end if bits unknown; add bitwise_hash_bits
Sage Weil [Thu, 7 Jan 2016 13:56:42 +0000 (08:56 -0500)]
os/FuseStore: hide bitwise_hash_end if bits unknown; add bitwise_hash_bits

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/FuseStore: present bitwise_hash_end
Sage Weil [Thu, 7 Jan 2016 02:34:42 +0000 (21:34 -0500)]
os/FuseStore: present bitwise_hash_end

Note this is the *last* hash value, inclusive.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: implement collection_bits
Sage Weil [Thu, 7 Jan 2016 02:34:18 +0000 (21:34 -0500)]
os/bluestore: implement collection_bits

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/ObjectStore: add collection_bits
Sage Weil [Thu, 7 Jan 2016 02:34:09 +0000 (21:34 -0500)]
os/ObjectStore: add collection_bits

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/FuseStore: respect fuse_debug
Sage Weil [Thu, 7 Jan 2016 02:16:13 +0000 (21:16 -0500)]
os/FuseStore: respect fuse_debug

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoceph-objectstore-tool: no need to check for fsck here
Sage Weil [Thu, 7 Jan 2016 01:57:01 +0000 (20:57 -0500)]
ceph-objectstore-tool: no need to check for fsck here

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoceph-objectstore-tool: use myexit(1) for fsck
Sage Weil [Thu, 7 Jan 2016 01:55:55 +0000 (20:55 -0500)]
ceph-objectstore-tool: use myexit(1) for fsck

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoosd: osd_objectstore_fuse
Sage Weil [Wed, 6 Jan 2016 22:56:12 +0000 (17:56 -0500)]
osd: osd_objectstore_fuse

Expose underlying ObjectStore via fuse at $osd_data/fuse/.  Can be enabled/
disabled at runtime.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoceph-objectstore-tool: mount an ObjectStore via fuse
Sage Weil [Wed, 6 Jan 2016 22:53:43 +0000 (17:53 -0500)]
ceph-objectstore-tool: mount an ObjectStore via fuse

Currently only read-only.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agovstart.sh: put the OSD journal in the normal location
Sage Weil [Wed, 6 Jan 2016 21:19:14 +0000 (16:19 -0500)]
vstart.sh: put the OSD journal in the normal location

Also, drop the ability to run without a journal.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years ago[g]hobject_t: normalize operator<< result, and implement parse
Sage Weil [Tue, 5 Jan 2016 20:00:12 +0000 (15:00 -0500)]
[g]hobject_t: normalize operator<< result, and implement parse

- print hash in *bitwise reverse* order
- include all fields, every time
- use : delimitor for hobject_t
- use @ delimitor for ghobject_t
- escape unprintable characters <32, >=127, :, %.
  - also /, for fuse layer's benefit

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7195 from liewegas/wip-rados-bench
Sage Weil [Wed, 27 Jan 2016 18:22:01 +0000 (13:22 -0500)]
Merge pull request #7195 from liewegas/wip-rados-bench

rados: rados bench improvements

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #7269 from liewegas/wip-bluestore-btree
Sage Weil [Wed, 27 Jan 2016 18:21:26 +0000 (13:21 -0500)]
Merge pull request #7269 from liewegas/wip-bluestore-btree

bluestore: use btree_map for allocator

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
9 years agoMerge pull request #6 from ifed01/wip-bluestore-btree-test 7269/head
Sage Weil [Wed, 27 Jan 2016 18:18:13 +0000 (13:18 -0500)]
Merge pull request #6 from ifed01/wip-bluestore-btree-test

UT for interval_set implementations